Last change
on this file since 352 was 352, checked in by coas-nagasima, 6 years ago |
arm向けASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
413 bytes
|
Rev | Line | |
---|
[352] | 1 | #include "pthread_impl.h"
|
---|
| 2 |
|
---|
| 3 | int __pthread_setcancelstate(int new, int *old)
|
---|
| 4 | {
|
---|
| 5 | if (new > 2U) return EINVAL;
|
---|
| 6 | struct pthread *self = __pthread_self();
|
---|
| 7 | if (old) *old = self->canceldisable;
|
---|
| 8 | self->canceldisable = new;
|
---|
| 9 | return 0;
|
---|
| 10 | }
|
---|
| 11 |
|
---|
| 12 | #ifndef __c2__
|
---|
| 13 | weak_alias(__pthread_setcancelstate, pthread_setcancelstate);
|
---|
| 14 | #else
|
---|
| 15 | int pthread_setcancelstate(int new, int *old)
|
---|
| 16 | {
|
---|
| 17 | return __pthread_setcancelstate(new, old);
|
---|
| 18 | }
|
---|
| 19 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.