summaryrefslogtreecommitdiff
path: root/src/components/include/utils/threads/thread_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/include/utils/threads/thread_delegate.h')
-rw-r--r--src/components/include/utils/threads/thread_delegate.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/components/include/utils/threads/thread_delegate.h b/src/components/include/utils/threads/thread_delegate.h
index 66ad30241c..2f2c8b3744 100644
--- a/src/components/include/utils/threads/thread_delegate.h
+++ b/src/components/include/utils/threads/thread_delegate.h
@@ -39,11 +39,7 @@
namespace threads {
-enum ThreadState {
- kInit = 0,
- kStarted = 1,
- kStopReq = 2
-};
+enum ThreadState { kInit = 0, kStarted = 1, kStopReq = 2 };
class Thread;
@@ -53,10 +49,7 @@ class Thread;
*/
class ThreadDelegate {
public:
- ThreadDelegate()
- : state_(kInit),
- thread_(NULL) {
- }
+ ThreadDelegate() : state_(kInit), thread_(NULL) {}
/**
* \brief Thread procedure.
*/
@@ -76,7 +69,7 @@ class ThreadDelegate {
return thread_;
}
- void set_thread(Thread *thread);
+ void set_thread(Thread* thread);
bool ImproveState(unsigned int to) {
state_lock_.Lock();