mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00:00
LibThread: Fix formatting that was broken by the previous commit
This commit is contained in:
parent
01db5205ab
commit
f3a3a63b68
1 changed files with 6 additions and 5 deletions
|
@ -14,12 +14,13 @@ namespace Threading {
|
||||||
|
|
||||||
class Lock {
|
class Lock {
|
||||||
public:
|
public:
|
||||||
Lock() {
|
Lock()
|
||||||
|
{
|
||||||
#ifndef __serenity__
|
#ifndef __serenity__
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
pthread_mutexattr_init(&attr);
|
pthread_mutexattr_init(&attr);
|
||||||
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
||||||
pthread_mutex_init(&m_mutex, &attr);
|
pthread_mutex_init(&m_mutex, &attr);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
~Lock() { }
|
~Lock() { }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue