mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
pthread_create attr argument should be passed by value per POSIX
standard. Was working as is only because pthread_attr_t is normally a struct. However, on some systems it may be a integer.
This commit is contained in:
parent
1b5451d619
commit
3a431b77ef
@ -42,7 +42,7 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate )
|
||||
int
|
||||
pthread_create(
|
||||
pthread_t *tid,
|
||||
pthread_attr_t attr,
|
||||
pthread_attr_t *attr,
|
||||
VFP func,
|
||||
void *arg
|
||||
)
|
||||
@ -194,7 +194,7 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate )
|
||||
int
|
||||
pthread_create(
|
||||
pthread_t *tid,
|
||||
pthread_attr_t attr,
|
||||
pthread_attr_t *attr,
|
||||
VFP func,
|
||||
void *arg
|
||||
)
|
||||
@ -361,12 +361,12 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate )
|
||||
int
|
||||
pthread_create(
|
||||
pthread_t *tid,
|
||||
pthread_attr_t attr,
|
||||
pthread_attr_t *attr,
|
||||
VFP func,
|
||||
void *arg
|
||||
)
|
||||
{
|
||||
return( thr_create( NULL, 0, func, arg, attr, tid ) );
|
||||
return( thr_create( NULL, 0, func, arg, *attr, tid ) );
|
||||
}
|
||||
#endif /* ! sunos56 */
|
||||
|
||||
@ -543,7 +543,7 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate )
|
||||
int
|
||||
pthread_create(
|
||||
pthread_t *tid,
|
||||
pthread_attr_t attr,
|
||||
pthread_attr_t *attr,
|
||||
VFP func,
|
||||
void *arg
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user