diff options
author | Max Kellermann <max@duempel.org> | 2013-01-10 09:27:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-10 10:00:52 +0100 |
commit | 51a8c109ab964810f5a5c439310f589d92cf1589 (patch) | |
tree | 4a1871f6f38a2a38890645798a0361fe2e884cbb /src/thread | |
parent | ea25e0ee55d9249bd661d9cf591cc542617947c5 (diff) | |
download | mpd-51a8c109ab964810f5a5c439310f589d92cf1589.tar.gz mpd-51a8c109ab964810f5a5c439310f589d92cf1589.tar.xz mpd-51a8c109ab964810f5a5c439310f589d92cf1589.zip |
thread/PosixMutex: fix indent
Diffstat (limited to '')
-rw-r--r-- | src/thread/PosixMutex.hxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/thread/PosixMutex.hxx b/src/thread/PosixMutex.hxx index 1862a3e2d..cbb713d31 100644 --- a/src/thread/PosixMutex.hxx +++ b/src/thread/PosixMutex.hxx @@ -36,25 +36,25 @@ * Low-level wrapper for a pthread_mutex_t. */ class PosixMutex { - pthread_mutex_t mutex; + pthread_mutex_t mutex; public: - constexpr PosixMutex():mutex(PTHREAD_MUTEX_INITIALIZER) {} + constexpr PosixMutex():mutex(PTHREAD_MUTEX_INITIALIZER) {} - PosixMutex(const PosixMutex &other) = delete; - PosixMutex &operator=(const PosixMutex &other) = delete; + PosixMutex(const PosixMutex &other) = delete; + PosixMutex &operator=(const PosixMutex &other) = delete; - void lock() { - pthread_mutex_lock(&mutex); - } + void lock() { + pthread_mutex_lock(&mutex); + } - bool try_lock() { - return pthread_mutex_trylock(&mutex) == 0; - } + bool try_lock() { + return pthread_mutex_trylock(&mutex) == 0; + } - void unlock() { - pthread_mutex_unlock(&mutex); - } + void unlock() { + pthread_mutex_unlock(&mutex); + } }; #endif |