version 1.10.2.3, 2003/03/03 17:10:05
|
version 1.11, 2003/01/03 19:20:52
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap_r/thr_thr.c,v 1.10.2.2 2003/02/15 15:42:26 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap_r/thr_thr.c,v 1.10 2002/01/04 20:17:40 kurt Exp $ */ |
/* |
/* |
* Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA |
* Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA |
* All rights reserved. |
* All rights reserved. |
Line 57 ldap_pvt_thread_create( ldap_pvt_thread_
|
Line 57 ldap_pvt_thread_create( ldap_pvt_thread_
|
void *(*start_routine)( void *), |
void *(*start_routine)( void *), |
void *arg) |
void *arg) |
{ |
{ |
return( thr_create( NULL, LDAP_PVT_THREAD_STACK_SIZE, start_routine, |
return( thr_create( NULL, 0, start_routine, arg, |
arg, detach ? THR_DETACHED : 0, thread ) ); |
detach ? THR_DETACHED : 0, |
|
thread ) ); |
} |
} |
|
|
void |
void |
Line 148 ldap_pvt_thread_mutex_trylock( ldap_pvt_
|
Line 149 ldap_pvt_thread_mutex_trylock( ldap_pvt_
|
return( mutex_trylock( mp ) ); |
return( mutex_trylock( mp ) ); |
} |
} |
|
|
ldap_pvt_thread_t |
|
ldap_pvt_thread_self( void ) |
|
{ |
|
return thr_self(); |
|
} |
|
|
|
#endif /* HAVE_THR */ |
#endif /* HAVE_THR */ |