[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: threading troubles on OSF Alpha v3.2 (ITS#89)
At 06:00 PM 3/3/99 GMT, h.b.furuseth@usit.uio.no wrote:
>I reported this before, but I don't remember what happened:
I think I must have misread my Pthread materials...
>The 2nd argument to
> pthread_create, pthread_cond_init, and pthread_mutex_init
to get defaults should be:
> pthread_attr_default, pthread_condattr_default, and
> pthread_mutexattr_default
This is draft 4 behavior. I assume HAVE_PTHREADS_D4 is defined
and HAVE_PTHREADS_FINAL is not?
>Can we put it back, this time in libldap_r/thr_posix.c?
Yes.
s/PTHREAD_STRUCT_ARGUMENTS/HAVE_PTHREAD_D4/
> #if PTHREAD_STRUCT_ARGUMENTS /* detected by configure */
> # define LDAP_PVT_THREAD_ATTR_DEFAULT pthread_attr_default
> # define LDAP_PVT_THREAD_CONDATTR_DEFAULT pthread_condattr_default
> # define LDAP_PVT_THREAD_MUTEXATTR_DEFAULT pthread_condattr_default
> #else
> # define LDAP_PVT_THREAD_ATTR_DEFAULT NULL
> # define LDAP_PVT_THREAD_CONDATTR_DEFAULT NULL
> # define LDAP_PVT_THREAD_MUTEXATTR_DEFAULT NULL
> #endif