Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11582
Modified Files:
Thread.cpp Thread.h
Log Message:
currentThread() added.
Index: Thread.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base/Thread.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Thread.h 16 May 2007 09:44:19 -0000 1.1
--- Thread.h 6 Jun 2007 16:01:09 -0000 1.2
***************
*** 79,82 ****
--- 79,84 ----
~ThreadActionTest();
};
+
+ pthread_t currentThread(void);
}
Index: Thread.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Base/Thread.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Thread.cpp 16 May 2007 09:44:19 -0000 1.1
--- Thread.cpp 6 Jun 2007 16:01:08 -0000 1.2
***************
*** 146,147 ****
--- 146,152 ----
{
}
+
+ pthread_t CBM::currentThread(void)
+ {
+ return(pthread_self());
+ }
|