[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Base Thread.cpp, 1.2, 1.3
Brought to you by:
xfred
|
From: Frederic T. <xf...@us...> - 2007-09-04 16:56:42
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13268 Modified Files: Thread.cpp Log Message: Few advances on comments and documentation. Index: Thread.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base/Thread.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Thread.cpp 6 Jun 2007 16:01:08 -0000 1.2 --- Thread.cpp 4 Sep 2007 16:56:39 -0000 1.3 *************** *** 114,150 **** } - ThreadActionTest::ThreadActionTest() - : ThreadAction() - { - slp=5; - } - - void ThreadActionTest::routine(void) - { - int loc = slp; - - while (loc--) { - m.Lock(); - slp=loc; - m.Unlock(); - sleep(1); - } - } - - float ThreadActionTest::Progress(void) - { - int loc; - - m.Lock(); - loc=slp; - m.Unlock(); - - return((5-loc)/.05); - } - - ThreadActionTest::~ThreadActionTest(void) - { - } - pthread_t CBM::currentThread(void) { --- 114,117 ---- |