Renato, thanks, I've changed it to return 0, but a I think, see discussion with Viktor, that it should be '1'.
Best regards. Maurilio. Vailton Renato wrote: > Hi! > > I would like to make one small suggestion: > > -----------8<----------------- > HB_FUNC( HB_THREADID ) > { > #if defined( HB_MT_VM ) > PHB_THREADSTATE pThread = ( PHB_THREADSTATE ) hb_vmThreadState(); > if( pThread ) > hb_retnl( pThread->th_id ); > else > #endif > hb_retni( 0 ); > } > ----------->8----------------- > > for use with security, as: > > if (HB_THREADID() == 00 ) > .... > End > > > ------------------------------------------------------------------------ > > _______________________________________________ > Harbour mailing list > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour -- __________ | | | |__| Maurilio Longo |_|_|_|____| farmaconsult s.r.l. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour