mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@9510 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e18f8f2296
commit
883184617d
1 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ ConditionVariable ItemBufferNotEmpty;
|
|||
ConditionVariable ItemBufferNotFull;
|
||||
Mutex ItemBufferLock;
|
||||
|
||||
BOOL StopRequested;
|
||||
bool StopRequested;
|
||||
|
||||
void ProducerThread()
|
||||
{
|
||||
|
|
@ -61,7 +61,7 @@ void ConsumerThread(int id)
|
|||
if(StopRequested && QueueSize == 0)
|
||||
break;
|
||||
|
||||
LONG Item = ItemBuffer[QueueStartOffset];
|
||||
int Item = ItemBuffer[QueueStartOffset];
|
||||
QueueSize--;
|
||||
QueueStartOffset++;
|
||||
TotalItemsConsumed++;
|
||||
|
|
@ -91,7 +91,7 @@ CONSOLE_APP_MAIN
|
|||
LOG("Press enter to stop...");
|
||||
ReadStdIn();
|
||||
|
||||
StopRequested = TRUE;
|
||||
StopRequested = true;
|
||||
|
||||
ItemBufferNotFull.Broadcast();
|
||||
ItemBufferNotEmpty.Broadcast();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue