Commit a67195c0 authored by Pavel Vainerman's avatar Pavel Vainerman

(omniThread): fix compile error for 'const' function and other minor fixes

parent 583757f6
...@@ -99,17 +99,17 @@ namespace uniset ...@@ -99,17 +99,17 @@ namespace uniset
OmniThreadCreator( const std::shared_ptr<ThreadMaster>& m, Action a, bool undetached = false ); OmniThreadCreator( const std::shared_ptr<ThreadMaster>& m, Action a, bool undetached = false );
~OmniThreadCreator() {} ~OmniThreadCreator() {}
inline bool isRunning() const inline bool isRunning()
{ {
return state() == omni_thread::STATE_RUNNING; return omni_thread::state() == omni_thread::STATE_RUNNING;
} }
inline void stop() inline void stop()
{ {
exit(0); omni_thread::exit(0);
} }
inline int getTID() inline int getTID()
{ {
return id(); return omni_thread::id();
} }
inline void join() inline void join()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment