* thread_getself: implemented
authortwisti <none@none>
Mon, 4 Jul 2005 20:41:28 +0000 (20:41 +0000)
committertwisti <none@none>
Mon, 4 Jul 2005 20:41:28 +0000 (20:41 +0000)
src/threads/native/threads.c
src/threads/native/threads.h

index 224fa5d0bb1ae29aa8f522fc7ddc9f6a47cdacf9..3678dc65c673c0b4463e5795d0de1ff863f8c7c3 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: threads.c 2800 2005-06-23 10:09:50Z twisti $
+   $Id: threads.c 2899 2005-07-04 20:41:28Z twisti $
 
 */
 
@@ -432,6 +432,19 @@ static void setthreadobject(threadobject *thread)
 #endif
 }
 
+
+/* thread_setself **************************************************************
+
+   XXX
+
+*******************************************************************************/
+
+void *thread_getself(void)
+{
+       return pthread_getspecific(tkey_threadinfo);
+}
+
+
 static monitorLockRecord *dummyLR;
 
 static void initPools();
index 4931a5078602066d0a3bf270167c70131d2658b6..f212f5ea1841e368f19ba8175a43ff51408e26bd 100644 (file)
@@ -28,7 +28,7 @@
 
    Changes: Christian Thalinger
 
-   $Id: threads.h 2761 2005-06-20 22:46:55Z stefan $
+   $Id: threads.h 2899 2005-07-04 20:41:28Z twisti $
 
 */
 
@@ -174,6 +174,8 @@ void signal_cond_for_object (java_objectheader *obj);
 void broadcast_cond_for_object (java_objectheader *obj);
 void wait_cond_for_object (java_objectheader *obj, s8 time, s4 nanos);
 
+void *thread_getself(void);
+
 void initThreadsEarly();
 void initThreads(u1 *stackbottom);
 void initObjectLock(java_objectheader *);