mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
Import thread fix
This commit is contained in:
parent
9c2b5515df
commit
a2f1c95d40
@ -35,9 +35,16 @@ ldap_pvt_thread_create( ldap_pvt_thread_t * thread,
|
||||
void *(*start_routine)( void *),
|
||||
void *arg)
|
||||
{
|
||||
*thread = (ldap_pvt_thread_t)_beginthread( (void *) start_routine,
|
||||
0, arg );
|
||||
return ( (unsigned long)*thread == -1 ? -1 : 0 );
|
||||
unsigned long tid
|
||||
HANDLE thd;
|
||||
|
||||
thd = _beginthreadex( NULL, 0,
|
||||
(LPTHREAD_START_ROUTINE) start_routine, arg,
|
||||
0, &tid );
|
||||
|
||||
*thread = (ldap_pvt_thread_t) thd;
|
||||
|
||||
return thd == NULL ? -1 : 0;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user