1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:37:43 +00:00

LibPthread: Add implementation for pthread_mutexattr_gettype

This commit is contained in:
Gunnar Beutner 2021-05-08 04:49:36 +02:00 committed by Andreas Kling
parent 7fea58c4f1
commit 6e80b9fd01
2 changed files with 7 additions and 0 deletions

View file

@ -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 {};