Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
lib
util
ThreadedObject.h
Go to the documentation of this file.
1
#ifndef __THREADED_OBJECT__
2
#define __THREADED_OBJECT__
3
4
#include <SDL/SDL_thread.h>
5
6
class
ThreadedObject
7
{
8
public
:
9
ThreadedObject
();
10
~ThreadedObject
();
11
void
start
();
12
void
stop
();
13
void
pause
();
14
void
resume
();
15
void
wait
();
16
bool
isPausing
();
17
bool
isRunning
();
18
virtual
bool
oneStep
();
19
void
notifyFinish
();
20
private
:
21
bool
m_isPausing
,
m_isRunning
;
22
SDL_Thread *
m_thread
;
23
SDL_sem *
m_sem
;
24
};
25
26
#endif
ThreadedObject::m_isPausing
bool m_isPausing
Definition:
ThreadedObject.h:21
ThreadedObject
Definition:
ThreadedObject.h:6
ThreadedObject::notifyFinish
void notifyFinish()
Definition:
ThreadedObject.cpp:67
ThreadedObject::pause
void pause()
Definition:
ThreadedObject.cpp:23
ThreadedObject::resume
void resume()
Definition:
ThreadedObject.cpp:27
ThreadedObject::oneStep
virtual bool oneStep()
Definition:
ThreadedObject.cpp:40
ThreadedObject::m_isRunning
bool m_isRunning
Definition:
ThreadedObject.h:21
ThreadedObject::m_sem
SDL_sem * m_sem
Definition:
ThreadedObject.h:23
ThreadedObject::isPausing
bool isPausing()
Definition:
ThreadedObject.cpp:32
ThreadedObject::isRunning
bool isRunning()
Definition:
ThreadedObject.cpp:36
ThreadedObject::stop
void stop()
Definition:
ThreadedObject.cpp:54
ThreadedObject::ThreadedObject
ThreadedObject()
Definition:
ThreadedObject.cpp:12
ThreadedObject::m_thread
SDL_Thread * m_thread
Definition:
ThreadedObject.h:22
ThreadedObject::start
void start()
Definition:
ThreadedObject.cpp:47
ThreadedObject::wait
void wait()
Definition:
ThreadedObject.cpp:61
ThreadedObject::~ThreadedObject
~ThreadedObject()
Definition:
ThreadedObject.cpp:18
hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51