2008-10-02 15:54 UTC+0200 Maurilio Longo (maurilio.longo@libero.it)

* harbour/source/vm/thread.c
    * hb_ThreadID() returns 0 when built in ST mode.
This commit is contained in:
Maurilio Longo
2008-10-02 13:53:54 +00:00
parent c2f6b15424
commit f25e456ddb
2 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,10 @@
*/
2008-10-02 15:54 UTC+0200 Maurilio Longo (maurilio.longo@libero.it)
* harbour/source/vm/thread.c
* hb_ThreadID() returns 0 when built in ST mode.
2008-10-02 15:50 UTC+0200 Maurilio Longo (maurilio.longo@libero.it)
* harbour/source/vm/thread.c
+ added hb_ThreadID() function which returns thread ID of current thread.

View File

@@ -677,7 +677,9 @@ HB_FUNC( HB_THREADID )
PHB_THREADSTATE pThread = ( PHB_THREADSTATE ) hb_vmThreadState();
if( pThread )
hb_retnl( pThread->th_id );
else
#endif
hb_retnl( 0 );
}
HB_FUNC( HB_THREADJOIN )