Last change
on this file since 387 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
469 bytes
|
Rev | Line | |
---|
[337] | 1 | #include "pthread_impl.h"
|
---|
| 2 |
|
---|
| 3 | int __pthread_mutex_timedlock(pthread_mutex_t *restrict, const struct timespec *restrict);
|
---|
| 4 |
|
---|
| 5 | int __pthread_mutex_lock(pthread_mutex_t *m)
|
---|
| 6 | {
|
---|
| 7 | if ((m->_m_type&15) == PTHREAD_MUTEX_NORMAL
|
---|
| 8 | && !a_cas(&m->_m_lock, 0, EBUSY))
|
---|
| 9 | return 0;
|
---|
| 10 |
|
---|
| 11 | return __pthread_mutex_timedlock(m, 0);
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | #ifndef __c2__
|
---|
| 15 | weak_alias(__pthread_mutex_lock, pthread_mutex_lock);
|
---|
| 16 | #else
|
---|
| 17 | int pthread_mutex_lock(pthread_mutex_t *m)
|
---|
| 18 | {
|
---|
| 19 | return __pthread_mutex_lock(m);
|
---|
| 20 | }
|
---|
| 21 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.