From f25e456ddbaf9c4cde562ec42f22e9b1fc506f6a Mon Sep 17 00:00:00 2001 From: Maurilio Longo Date: Thu, 2 Oct 2008 13:53:54 +0000 Subject: [PATCH] 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. --- harbour/ChangeLog | 4 ++++ harbour/source/vm/thread.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 745df20af0..386384c42c 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -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. diff --git a/harbour/source/vm/thread.c b/harbour/source/vm/thread.c index 8f97fa5680..35551f3937 100644 --- a/harbour/source/vm/thread.c +++ b/harbour/source/vm/thread.c @@ -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 )