count->isPaused()) { ++number:
Автор admin Пятница, 26 июня 2009 11:32
count->isPaused()) { ++number: { ostringstream os: os « *this « ” Total: ” « count->increment() « endl: display->output(os); } Thread::sleep(100): } waitingForCancel – true; while(!count->isCanceled()) // Задержка… Thread::sleep(100); ostringstream os: os « “Terminating ” « *this « endl: display->output(os): } int getValueO { while(count->isPaused() && IwaitingForCancel) Thread::sieep(100): return number; } friend ostream& operator«(ostream& os, const Entrances e) { return os « “Entrance ” « e.id « “: ” « e.number; } }: int mainO { srand(time(0)); // Раскрутка генератора случайных чисел cout « “Press
Комментарии закрыты.
Последние комментарии