mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibPthread: Add implementation for pthread_mutexattr_gettype
This commit is contained in:
parent
7fea58c4f1
commit
6e80b9fd01
2 changed files with 7 additions and 0 deletions
|
@ -196,6 +196,12 @@ int pthread_mutexattr_settype(pthread_mutexattr_t* attr, int type)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int pthread_mutexattr_gettype(pthread_mutexattr_t* attr, int* type)
|
||||
{
|
||||
*type = attr->type;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pthread_attr_init(pthread_attr_t* attributes)
|
||||
{
|
||||
auto* impl = new PthreadAttrImpl {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue