void ClientMain::fulfillService (  )  [private]

Definition at line 154 of file ClientMain.cpp.

00154                                 {
00155         if (serviceNeeded) {
00156                 enterCriticalSection();
00157                 working = true;
00158                 createWorker();
00159                 createReminder();
00160                 leaveCriticalSection();
00161                 // wait for the worker to terminate
00162                 void* result;
00163                 if ( pthread_join(worker, &result) ) {
00164                         cout << DateFormater::getDate() << "Waiting for worker failed!" << endl;
00165                 }
00166         }
00167         /*else {
00168                 cout << DateFormater::getDate() << "There is no service needed..." << endl;
00169         }*/
00170 }


Generated on Wed Jun 25 14:47:08 2008 for keyvil by  doxygen 1.5.1