| 103 | |
| 104 | protected: |
| 105 | void* run() |
| 106 | { |
| 107 | for (int i = 0; i < max_; i++) |
| 108 | { |
| 109 | queue_item* item = new queue_item(MSG_ECHO); |
| 110 | queue_.push(item); |
| 111 | } |
| 112 | printf("push msg ok\r\n"); |
| 113 | |
| 114 | queue_item* item = new queue_item(MSG_STOP); |
| 115 | queue_.push(item); |
| 116 | return NULL; |
| 117 | } |
| 118 | |
| 119 | private: |
| 120 | acl::thread_queue& queue_; |