git: <pthread.h>: Avoid namespace pollution.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri Sep 23 23:51:34 PDT 2016


commit b8ee06c5107dee10df13ec7ba547031ad69a844e
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Thu Sep 22 14:32:51 2016 +0300

    <pthread.h>: Avoid namespace pollution.
    
    Rename MUTEX_TYPE_MAX -> PTHREAD_MUTEX_TYPE_MAX to avoid clashes
    with types in user source codes. Adjust all use cases.
    
    While there, remove deprecated unused compat mutex types.

Summary of changes:
 include/pthread.h                          | 6 +-----
 lib/libc_r/uthread/uthread_mattr_kind_np.c | 5 ++---
 lib/libc_r/uthread/uthread_mutex.c         | 3 +--
 lib/libthread_xu/thread/thr_mutex.c        | 3 +--
 lib/libthread_xu/thread/thr_mutexattr.c    | 5 ++---
 5 files changed, 7 insertions(+), 15 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b8ee06c5107dee10df13ec7ba547031ad69a844e


-- 
DragonFly BSD source repository



More information about the Commits mailing list