D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 666 - missing pthread functions
Summary: missing pthread functions
Status: RESOLVED WONTFIX
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 04:50 UTC by Thomas Kühne
Modified: 2015-11-01 13:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Thomas Kühne 2006-12-09 04:50:09 UTC
Some pthread functions are currently declared in std.threads while
others are declared in std.c.linux.linux. The functions that seem
to be missing are:

pthread_attr_destroy
pthread_attr_getdetachstate
pthread_attr_getguardsize
pthread_attr_getinheritsched
pthread_attr_getschedparam
pthread_attr_getschedpolicy
pthread_attr_getscope
pthread_attr_getstack
pthread_attr_getstackaddr
pthread_attr_getstacksize
pthread_attr_setdetachstate
pthread_attr_setguardsize
pthread_attr_setinheritsched
pthread_attr_setschedparam
pthread_attr_setschedpolicy
pthread_attr_setscope
pthread_attr_setstack
pthread_attr_setstackaddr
pthread_attr_setstacksize
pthread_barrierattr_destroy
pthread_barrierattr_getpshared
pthread_barrierattr_init
pthread_barrierattr_setpshared
pthread_barrier_destroy
pthread_barrier_init
pthread_barrier_wait
pthread_cancel_init
pthread_condattr_destroy
pthread_condattr_getclock
pthread_condattr_getpshared
pthread_condattr_init
pthread_condattr_setclock
pthread_condattr_setpshared
pthread_detach
pthread_exit
pthread_getattr_np
pthread_getconcurrency
pthread_getcpuclockid
pthread_getschedparam
pthread_key_create
pthread_key_delete
pthread_mutexattr_getkind_np
pthread_mutexattr_getprioceiling
pthread_mutexattr_getprotocol
pthread_mutexattr_getpshared
pthread_mutexattr_getrobust_np
pthread_mutexattr_setprioceiling
pthread_mutexattr_setprotocol
pthread_mutexattr_setpshared
pthread_mutexattr_setrobust_np
pthread_mutexattr_settype
pthread_mutex_consistent_np
pthread_mutex_getprioceiling
pthread_mutex_setprioceiling
pthread_mutex_timedlock
pthread_once
pthread_rwlockattr_destroy
pthread_rwlockattr_getkind_np
pthread_rwlockattr_getpshared
pthread_rwlockattr_init
pthread_rwlockattr_setkind_np
pthread_rwlockattr_setpshared
pthread_rwlock_timedrdlock
pthread_rwlock_timedwrlock
pthread_rwlock_tryrdlock
pthread_rwlock_trywrlock
pthread_rwlock_wrlock
pthread_setconcurrency
pthread_setschedparam
pthread_setschedprio
pthread_setspecific
pthread_sigmask
pthread_spin_destroy
pthread_spin_init
pthread_spin_lock
pthread_spin_trylock
pthread_testcancel
pthread_timedjoin_np
pthread_tryjoin_np
pthread_yield
Comment 1 Walter Bright 2006-12-28 15:38:41 UTC
This doesn't seem to line up with pthreads.h on my Red Hat linux box. There are missing functions, and extra functions.
Comment 2 Thomas Kühne 2006-12-30 20:26:16 UTC
There are atleast 3 different extension to the original pthread standard 
floating around:
GNU, UNIX98 and XOPEN2K
Comment 3 Sean Kelly 2010-09-21 16:15:01 UTC
These are defined by druntime in D2, so this issue is D1-specific.