diff options
author | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2015-03-19 19:32:08 +0000 |
---|---|---|
committer | Travis CI <zmoelnig@travis-ci.umlaeute.mur.at> | 2015-03-19 19:32:08 +0000 |
commit | 095b7e513f736567848173f2572d8b329ad75af9 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Gem/develop/include/Gem/Utils/Thread.h | |
parent | 15b30fe20b401d079c2b3c6a8e77eee827813de3 (diff) |
Gem 206d71791bc3642e8c5391a4c59c30ba7411fab8 osx/x86_64
built 'coverity_scan:206d71791bc3642e8c5391a4c59c30ba7411fab8' for osx/x86_64
Diffstat (limited to 'Gem/develop/include/Gem/Utils/Thread.h')
-rw-r--r-- | Gem/develop/include/Gem/Utils/Thread.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/Gem/develop/include/Gem/Utils/Thread.h b/Gem/develop/include/Gem/Utils/Thread.h deleted file mode 100644 index ca861cc..0000000 --- a/Gem/develop/include/Gem/Utils/Thread.h +++ /dev/null @@ -1,66 +0,0 @@ -/*----------------------------------------------------------------- -LOG - GEM - Graphics Environment for Multimedia - - Thread.h - - part of GEM - - simple platform independent thread abstraction - - Copyright (c) 2011-2012 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at - For information on usage and redistribution, and for a DISCLAIMER OF ALL - WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. - ------------------------------------------------------------------*/ - -#ifndef _INCLUDE__GEM_GEM_THREAD_H_ -#define _INCLUDE__GEM_GEM_THREAD_H_ - -#include "Gem/ExportDef.h" - -namespace gem { namespace thread { - /** - * get the number of available CPUs on the system - */ - GEM_EXTERN unsigned int getCPUCount(void); - - class GEM_EXTERN Thread { - private: - class PIMPL; - PIMPL*m_pimpl; - friend class PIMPL; - - Thread(const Thread&); - Thread&operator=(const Thread&); - public: - Thread(void); - virtual ~Thread(void); - - //// - // start thread - virtual bool start(void); - //// - // stop thread - // waits for at most wait4usec microseconds - // is wait4usec==0, waits until process terminates (e.g. forever) - virtual bool stop(unsigned int wait4usec=0); - - protected: - //// - // the worker! - // get's called from an alternative thread - // if TRUE is returned, process() will be called again - // until stop() is called - // if FALSE is returned, the thread may exit - virtual bool process(void) = 0; - }; - - - //////// - // wrapper around select() or whatever - GEM_EXTERN void usleep(unsigned long usec); -};}; // namespace - - - - -#endif /* _INCLUDE__GEM_GEM_THREAD_H_ */ |