diff options
-rw-r--r-- | ANNOUNCE | 2 | ||||
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | GNUmakefile | 4 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | nonportable.c | 2 | ||||
-rw-r--r-- | pthread.h | 2 | ||||
-rwxr-xr-x | pthread_getunique_np.c (renamed from pthread_getsequence_np.c) | 4 |
8 files changed, 12 insertions, 12 deletions
@@ -266,7 +266,7 @@ The following functions are implemented: pthread_getw32threadhandle_np pthread_timechange_handler_np pthread_delay_np - pthread_getsequence_np + pthread_getunique_np pthread_mutexattr_getkind_np pthread_mutexattr_setkind_np (types: PTHREAD_MUTEX_FAST_NP, PTHREAD_MUTEX_ERRORCHECK_NP, @@ -1,9 +1,9 @@ 2011-03-26 Ross Johnson <ross.johnson at homemail.com.au>
- * pthread_getsequence_np.c: New non-POSIX interface for compatibility
+ * pthread_getunique_np.c: New non-POSIX interface for compatibility
with some other implementations; returns a 64 bit sequence number
that is unique to each thread in the process.
- * pthread.h (pthread_getsequence_np): Added.
+ * pthread.h (pthread_getunique_np): Added.
* global.c: Add global sequence counter for above.
* implement.h: Likewise.
diff --git a/GNUmakefile b/GNUmakefile index 3491efd..6288ded 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -194,7 +194,7 @@ SMALL_STATIC_OBJS = \ pthread_mutexattr_setkind_np.o \ pthread_mutexattr_getkind_np.o \ pthread_getw32threadhandle_np.o \ - pthread_getsequence_np.o \ + pthread_getunique_np.o \ pthread_delay_np.o \ pthread_num_processors_np.o \ pthread_win32_attach_detach_np.o \ @@ -354,7 +354,7 @@ NONPORTABLE_SRCS = \ pthread_mutexattr_setkind_np.c \ pthread_mutexattr_getkind_np.c \ pthread_getw32threadhandle_np.c \ - pthread_getsequence_np.c \ + pthread_getunique_np.c \ pthread_delay_np.c \ pthread_num_processors_np.c \ pthread_win32_attach_detach_np.c \ @@ -140,7 +140,7 @@ SMALL_STATIC_OBJS = \ pthread_mutexattr_setkind_np.obj \ pthread_mutexattr_getkind_np.obj \ pthread_getw32threadhandle_np.obj \ - pthread_getsequence_np.obj \ + pthread_getunique_np.obj \ pthread_delay_np.obj \ pthread_num_processors_np.obj \ pthread_win32_attach_detach_np.obj \ @@ -296,7 +296,7 @@ NONPORTABLE_SRCS = \ pthread_mutexattr_setkind_np.c \ pthread_mutexattr_getkind_np.c \ pthread_getw32threadhandle_np.c \ - pthread_getsequence_np.c \ + pthread_getunique_np.c \ pthread_delay_np.c \ pthread_num_processors_np.c \ pthread_win32_attach_detach_np.c \ @@ -56,7 +56,7 @@ types when the mutex is robust, whereas this does not occur for the "normal" non-robust mutex type. - Ross Johnson -pthread_getsequence_np is implemented for source level compatibility +pthread_getunique_np is implemented for source level compatibility with some other implementations. This routine returns a 64 bit sequence number that is uniquely associated with a thread. It can be used by applications to order or hash POSIX thread handles. diff --git a/nonportable.c b/nonportable.c index 82c558b..742cb96 100644 --- a/nonportable.c +++ b/nonportable.c @@ -40,7 +40,7 @@ #include "pthread_mutexattr_setkind_np.c" #include "pthread_mutexattr_getkind_np.c" #include "pthread_getw32threadhandle_np.c" -#include "pthread_getsequence_np.c" +#include "pthread_getunique_np.c" #include "pthread_delay_np.c" #include "pthread_num_processors_np.c" #include "pthread_win32_attach_detach_np.c" @@ -1176,7 +1176,7 @@ PTW32_DLLPORT int PTW32_CDECL pthread_mutexattr_getkind_np(pthread_mutexattr_t * */ PTW32_DLLPORT int PTW32_CDECL pthread_delay_np (struct timespec * interval); PTW32_DLLPORT int PTW32_CDECL pthread_num_processors_np(void); -PTW32_DLLPORT unsigned long long PTW32_CDECL pthread_getsequence_np(pthread_t thread); +PTW32_DLLPORT unsigned long long PTW32_CDECL pthread_getunique_np(pthread_t thread); /* * Useful if an application wants to statically link diff --git a/pthread_getsequence_np.c b/pthread_getunique_np.c index 0e643e9..f81fc61 100755 --- a/pthread_getsequence_np.c +++ b/pthread_getunique_np.c @@ -1,5 +1,5 @@ /* - * pthread_getsequence_np.c + * pthread_getunique_np.c * * Description: * This translation unit implements non-portable thread functions. @@ -41,7 +41,7 @@ * */ unsigned long long -pthread_getsequence_np (pthread_t thread) +pthread_getunique_np (pthread_t thread) { return ((ptw32_thread_t*)thread.p)->seqNumber; } |