Skip to content
Snippets Groups Projects
Commit a2f1c95d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Import thread fix

parent 9c2b5515
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment