Hide umtx API symbols as well.
This commit is contained in:
parent
cf905a1575
commit
8429e73473
@ -51,11 +51,14 @@
|
||||
#include <sys/thr.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#ifndef __hidden
|
||||
#define __hidden __attribute__((visibility("hidden")))
|
||||
#endif
|
||||
|
||||
#include "pthread_md.h"
|
||||
#include "thr_umtx.h"
|
||||
#include "thread_db.h"
|
||||
|
||||
#define __hidden __attribute__((visibility("hidden")))
|
||||
typedef TAILQ_HEAD(pthreadlist, pthread) pthreadlist;
|
||||
typedef TAILQ_HEAD(atfork_head, pthread_atfork) atfork_head;
|
||||
|
||||
|
@ -33,10 +33,10 @@
|
||||
|
||||
typedef long umtx_t;
|
||||
|
||||
int __thr_umtx_lock(volatile umtx_t *mtx, long id);
|
||||
int __thr_umtx_lock(volatile umtx_t *mtx, long id) __hidden;
|
||||
int __thr_umtx_timedlock(volatile umtx_t *mtx, long id,
|
||||
const struct timespec *timeout);
|
||||
int __thr_umtx_unlock(volatile umtx_t *mtx, long id);
|
||||
const struct timespec *timeout) __hidden;
|
||||
int __thr_umtx_unlock(volatile umtx_t *mtx, long id) __hidden;
|
||||
|
||||
static inline void
|
||||
_thr_umtx_init(volatile umtx_t *mtx)
|
||||
@ -82,6 +82,6 @@ _thr_umtx_unlock(volatile umtx_t *mtx, long id)
|
||||
}
|
||||
|
||||
int _thr_umtx_wait(volatile umtx_t *mtx, umtx_t exp,
|
||||
const struct timespec *timeout);
|
||||
int _thr_umtx_wake(volatile umtx_t *mtx, int count);
|
||||
const struct timespec *timeout) __hidden;
|
||||
int _thr_umtx_wake(volatile umtx_t *mtx, int count) __hidden;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user