mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +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 *(*start_routine)( void *),
|
||||||
void *arg)
|
void *arg)
|
||||||
{
|
{
|
||||||
*thread = (ldap_pvt_thread_t)_beginthread( (void *) start_routine,
|
unsigned long tid
|
||||||
0, arg );
|
HANDLE thd;
|
||||||
return ( (unsigned long)*thread == -1 ? -1 : 0 );
|
|
||||||
|
thd = _beginthreadex( NULL, 0,
|
||||||
|
(LPTHREAD_START_ROUTINE) start_routine, arg,
|
||||||
|
0, &tid );
|
||||||
|
|
||||||
|
*thread = (ldap_pvt_thread_t) thd;
|
||||||
|
|
||||||
|
return thd == NULL ? -1 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user