--- libraries/libldap_r/thr_thr.c 2002/01/04 20:17:40 1.10 +++ libraries/libldap_r/thr_thr.c 2003/02/15 15:42:26 1.10.2.2 @@ -1,4 +1,4 @@ -/* $OpenLDAP: pkg/ldap/libraries/libldap_r/thr_thr.c,v 1.9 2000/06/13 00:42:13 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/libldap_r/thr_thr.c,v 1.10.2.1 2003/02/08 23:28:51 kurt Exp $ */ /* * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. @@ -57,9 +57,8 @@ ldap_pvt_thread_create( ldap_pvt_thread_ void *(*start_routine)( void *), void *arg) { - return( thr_create( NULL, 0, start_routine, arg, - detach ? THR_DETACHED : 0, - thread ) ); + return( thr_create( NULL, LDAP_PVT_THREAD_STACK_SIZE, start_routine, + arg, detach ? THR_DETACHED : 0, thread ) ); } void @@ -149,4 +148,10 @@ ldap_pvt_thread_mutex_trylock( ldap_pvt_ return( mutex_trylock( mp ) ); } +ldap_pvt_thread_t +ldap_pvt_thread_self( void ) +{ + return thr_self(); +} + #endif /* HAVE_THR */