summaryrefslogtreecommitdiff
path: root/core/os/thread_dummy.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-03-05 16:44:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2017-03-05 16:44:50 +0100
commit5dbf1809c6e3e905b94b8764e99491e608122261 (patch)
tree5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /core/os/thread_dummy.h
parent45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff)
A Whole New World (clang-format edition)
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
Diffstat (limited to 'core/os/thread_dummy.h')
-rw-r--r--core/os/thread_dummy.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/core/os/thread_dummy.h b/core/os/thread_dummy.h
index 01e366e2fa..8d0ca0340d 100644
--- a/core/os/thread_dummy.h
+++ b/core/os/thread_dummy.h
@@ -29,13 +29,13 @@
#ifndef THREAD_DUMMY_H
#define THREAD_DUMMY_H
-#include "thread.h"
#include "mutex.h"
#include "semaphore.h"
+#include "thread.h"
class ThreadDummy : public Thread {
- static Thread* create(ThreadCreateCallback p_callback,void * p_user,const Settings& p_settings=Settings());
+ static Thread *create(ThreadCreateCallback p_callback, void *p_user, const Settings &p_settings = Settings());
public:
virtual ID get_ID() const { return 0; };
@@ -45,12 +45,11 @@ public:
class MutexDummy : public Mutex {
- static Mutex* create(bool p_recursive);
+ static Mutex *create(bool p_recursive);
public:
-
- virtual void lock() {};
- virtual void unlock() {};
+ virtual void lock(){};
+ virtual void unlock(){};
virtual Error try_lock() { return OK; };
static void make_default();
@@ -58,7 +57,7 @@ public:
class SemaphoreDummy : public Semaphore {
- static Semaphore* create();
+ static Semaphore *create();
public:
virtual Error wait() { return OK; };
@@ -66,7 +65,6 @@ public:
virtual int get() const { return 0; }; ///< get semaphore value
static void make_default();
-
};
#endif