Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-06-28 06:02:04 +00:00
Code Issues Projects Releases Wiki Activity
Files
64e32287f9d8a84217834bcc3387e9431cad9e4c
musl/src/thread/pthread_mutexattr_setrobust.c

10 lines
185 B
C
Raw Normal View History

implement robust mutexes some of this code should be cleaned up, e.g. using macros for some of the bit flags, masks, etc. nonetheless, the code is believed to be working and correct at this point.
2011-03-17 20:41:37 -04:00
#include "pthread_impl.h"
int pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)
{
if (robust > 1U) return EINVAL;
make pthread attribute types structs, even when they just have one field this change is to get the right tags for C++ ABI matching. it should have no other effects.
2013-07-22 13:57:02 -04:00
a->__attr &= ~4;
a->__attr |= robust*4;
implement robust mutexes some of this code should be cleaned up, e.g. using macros for some of the bit flags, masks, etc. nonetheless, the code is believed to be working and correct at this point.
2011-03-17 20:41:37 -04:00
return 0;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 557ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API