- void submit(const gOpcode &o)
- {
- static int collected=0;
- queue.enqueue(o);
- collected++;
-// if (o.opcode==gOpcode::end||o.opcode==gOpcode::shutdown)
- {
- queuelock.unlock(collected);
-#ifdef SYNC_PAINT
- thread();
-#endif
- collected=0;
- }
- }