| 90 | } |
| 91 | |
| 92 | IplImage* CaptureThread::Pop() |
| 93 | { |
| 94 | if (imageQueue.size() <= 0) |
| 95 | { |
| 96 | CaptureFrame(); |
| 97 | } |
| 98 | |
| 99 | IplImage *image = imageQueue.front(); |
| 100 | |
| 101 | if (imageQueue.size() > 1) |
| 102 | { |
| 103 | imageQueue.pop(); |
| 104 | } |
| 105 | |
| 106 | return image; |
| 107 | } |
| 108 | |
| 109 | /* |
| 110 | * Flush the stack, allowing the user to make sure s/he gets the most |
no outgoing calls
no test coverage detected