mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-23 14:09:39 +08:00
Axe the SunOS 5.6 define and use Pthreads.
This commit is contained in:
parent
0f518857f0
commit
baf8e2f010
@ -119,8 +119,6 @@ typedef void *(*VFP)();
|
|||||||
#define PTHREAD_SHARE_PRIVATE USYNC_THREAD
|
#define PTHREAD_SHARE_PRIVATE USYNC_THREAD
|
||||||
#define PTHREAD_SHARE_PROCESS USYNC_PROCESS
|
#define PTHREAD_SHARE_PROCESS USYNC_PROCESS
|
||||||
|
|
||||||
|
|
||||||
#if !defined(__SunOS_5_6)
|
|
||||||
/* thread attributes and thread type */
|
/* thread attributes and thread type */
|
||||||
typedef int pthread_attr_t;
|
typedef int pthread_attr_t;
|
||||||
typedef thread_t pthread_t;
|
typedef thread_t pthread_t;
|
||||||
@ -132,7 +130,6 @@ typedef mutex_t pthread_mutex_t;
|
|||||||
/* condition variable attributes and condition variable type */
|
/* condition variable attributes and condition variable type */
|
||||||
typedef int pthread_condattr_t;
|
typedef int pthread_condattr_t;
|
||||||
typedef cond_t pthread_cond_t;
|
typedef cond_t pthread_cond_t;
|
||||||
#endif /* ! sunos56 */
|
|
||||||
|
|
||||||
LDAP_END_DECL
|
LDAP_END_DECL
|
||||||
|
|
||||||
|
@ -180,7 +180,6 @@ pthread_cond_broadcast( pthread_cond_t *cv )
|
|||||||
* *
|
* *
|
||||||
*******************/
|
*******************/
|
||||||
|
|
||||||
#if !defined(__SunOS_5_6)
|
|
||||||
int
|
int
|
||||||
pthread_attr_init( pthread_attr_t *attr )
|
pthread_attr_init( pthread_attr_t *attr )
|
||||||
{
|
{
|
||||||
@ -220,7 +219,6 @@ pthread_create(
|
|||||||
{
|
{
|
||||||
return( thr_create( NULL, 0, func, arg, *attr, tid ) );
|
return( thr_create( NULL, 0, func, arg, *attr, tid ) );
|
||||||
}
|
}
|
||||||
#endif /* ! sunos56 */
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pthread_yield( void )
|
pthread_yield( void )
|
||||||
@ -228,7 +226,6 @@ pthread_yield( void )
|
|||||||
thr_yield();
|
thr_yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(__SunOS_5_6)
|
|
||||||
void
|
void
|
||||||
pthread_exit()
|
pthread_exit()
|
||||||
{
|
{
|
||||||
@ -307,7 +304,6 @@ pthread_cond_broadcast( pthread_cond_t *cv )
|
|||||||
{
|
{
|
||||||
return( cond_broadcast( cv ) );
|
return( cond_broadcast( cv ) );
|
||||||
}
|
}
|
||||||
#endif /* ! sunos56 */
|
|
||||||
|
|
||||||
#elif defined( HAVE_LWP )
|
#elif defined( HAVE_LWP )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user