RosApi Class Reference

List of all members.

Public Member Functions

void addWork (const WorkFunction &f)
void doWork ()
int init (int *argc, char ***argv)
void init2 ()
 RosApi ()
void triggerWork ()
void uninit ()
bool waitForMainThread (boost::mutex::scoped_lock &lock)

Public Attributes

boost::mutex mutex_

Private Types

enum  main_thread_states { MAIN_THREAD_NOT_WAITING, MAIN_THREAD_WAITING, MAIN_THREAD_PAUSED }

Private Member Functions

void mainThreadWait (boost::mutex::scoped_lock &lock)
void waitForMainThreadState (boost::mutex::scoped_lock &lock, main_thread_states target)

Private Attributes

bool initialized_
boost::condition_variable main_thread_cv_
volatile main_thread_states main_thread_state_
int pipefd [2]
boost::shared_ptr< boost::thread > ros_spin_loop_
volatile bool shutting_down_
std::queue< WorkFunctionwork_queue_

Detailed Description

Definition at line 33 of file wpa_supplicant_node.cpp.


Member Enumeration Documentation

Enumerator:
MAIN_THREAD_NOT_WAITING 
MAIN_THREAD_WAITING 
MAIN_THREAD_PAUSED 

Definition at line 38 of file wpa_supplicant_node.cpp.


Constructor & Destructor Documentation

RosApi::RosApi (  )  [inline]

Definition at line 47 of file wpa_supplicant_node.cpp.


Member Function Documentation

void RosApi::addWork ( const WorkFunction f  )  [inline]

Definition at line 84 of file wpa_supplicant_node.cpp.

void RosApi::doWork (  )  [inline]

Definition at line 53 of file wpa_supplicant_node.cpp.

int RosApi::init ( int *  argc,
char ***  argv 
) [inline]

Definition at line 100 of file wpa_supplicant_node.cpp.

void RosApi::init2 (  )  [inline]

Definition at line 146 of file wpa_supplicant_node.cpp.

void RosApi::mainThreadWait ( boost::mutex::scoped_lock &  lock  )  [inline, private]

Definition at line 128 of file wpa_supplicant_node.cpp.

void RosApi::triggerWork (  )  [inline]

Definition at line 94 of file wpa_supplicant_node.cpp.

void RosApi::uninit (  )  [inline]

Definition at line 152 of file wpa_supplicant_node.cpp.

bool RosApi::waitForMainThread ( boost::mutex::scoped_lock &  lock  )  [inline]

Definition at line 138 of file wpa_supplicant_node.cpp.

void RosApi::waitForMainThreadState ( boost::mutex::scoped_lock &  lock,
main_thread_states  target 
) [inline, private]

Definition at line 119 of file wpa_supplicant_node.cpp.


Member Data Documentation

bool RosApi::initialized_ [private]

Definition at line 35 of file wpa_supplicant_node.cpp.

boost::condition_variable RosApi::main_thread_cv_ [private]

Definition at line 37 of file wpa_supplicant_node.cpp.

Definition at line 39 of file wpa_supplicant_node.cpp.

boost::mutex RosApi::mutex_

Definition at line 45 of file wpa_supplicant_node.cpp.

int RosApi::pipefd[2] [private]

Definition at line 40 of file wpa_supplicant_node.cpp.

boost::shared_ptr<boost::thread> RosApi::ros_spin_loop_ [private]

Definition at line 41 of file wpa_supplicant_node.cpp.

volatile bool RosApi::shutting_down_ [private]

Definition at line 42 of file wpa_supplicant_node.cpp.

std::queue<WorkFunction> RosApi::work_queue_ [private]

Definition at line 36 of file wpa_supplicant_node.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Jan 11 10:02:49 2013