.reference

git-svn-id: svn://ultimatepp.org/upp/trunk@9510 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-02-22 08:46:49 +00:00
parent e18f8f2296
commit 883184617d

View file

@ -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();