summaryrefslogtreecommitdiff
path: root/core/os/thread.h
diff options
context:
space:
mode:
authorHubert Jarosz <marqin.pl@gmail.com>2016-03-09 00:00:52 +0100
committerHubert Jarosz <marqin.pl@gmail.com>2016-03-09 00:00:52 +0100
commit4a4f2479146aa33e235ed57cde311efda68d3c8f (patch)
treecf91f2869ff8f058c6682569fb31e22e5ee736ad /core/os/thread.h
parent1dad6eca812e5c2e313b54265114de8a1d73d999 (diff)
remove trailing whitespace
Diffstat (limited to 'core/os/thread.h')
-rw-r--r--core/os/thread.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/os/thread.h b/core/os/thread.h
index 4fead72b94..7349b83dbc 100644
--- a/core/os/thread.h
+++ b/core/os/thread.h
@@ -41,25 +41,25 @@ typedef void (*ThreadCreateCallback)(void *p_userdata);
class Thread {
public:
-
+
enum Priority {
-
+
PRIORITY_LOW,
PRIORITY_NORMAL,
PRIORITY_HIGH
};
-
+
struct Settings {
-
+
Priority priority;
Settings() { priority=PRIORITY_NORMAL; }
};
-
+
typedef uint64_t ID;
-protected:
+protected:
static Thread* (*create_func)(ThreadCreateCallback p_callback,void *,const Settings&);
static ID (*get_thread_ID_func)();
static void (*wait_to_finish_func)(Thread*);
@@ -72,7 +72,7 @@ protected:
Thread();
public:
-
+
virtual ID get_ID() const=0;
@@ -81,8 +81,8 @@ public:
static ID get_caller_ID(); ///< get the ID of the caller function ID
static void wait_to_finish(Thread *p_thread); ///< waits until thread is finished, and deallocates it.
static Thread * create(ThreadCreateCallback p_callback,void * p_user,const Settings& p_settings=Settings()); ///< Static function to create a thread, will call p_callback
-
-
+
+
virtual ~Thread();
};