Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes
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 reconfigure (wpa_supplicant_node::WpaSupplicantNodeConfig &config, unsigned int &level)
void waitForMainThreadState (boost::mutex::scoped_lock &lock, main_thread_states target)

Private Attributes

bool first_call_to_reconfigure
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 42 of file wpa_supplicant_node.cpp.


Member Enumeration Documentation

Enumerator:
MAIN_THREAD_NOT_WAITING 
MAIN_THREAD_WAITING 
MAIN_THREAD_PAUSED 

Definition at line 47 of file wpa_supplicant_node.cpp.


Constructor & Destructor Documentation

RosApi::RosApi ( ) [inline]

Definition at line 59 of file wpa_supplicant_node.cpp.


Member Function Documentation

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

Definition at line 96 of file wpa_supplicant_node.cpp.

void RosApi::doWork ( ) [inline]

Definition at line 65 of file wpa_supplicant_node.cpp.

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

Definition at line 112 of file wpa_supplicant_node.cpp.

void RosApi::init2 ( ) [inline]

Definition at line 171 of file wpa_supplicant_node.cpp.

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

Definition at line 150 of file wpa_supplicant_node.cpp.

void RosApi::reconfigure ( wpa_supplicant_node::WpaSupplicantNodeConfig &  config,
unsigned int &  level 
) [private]

Definition at line 925 of file wpa_supplicant_node.cpp.

void RosApi::triggerWork ( ) [inline]

Definition at line 106 of file wpa_supplicant_node.cpp.

void RosApi::uninit ( ) [inline]

Definition at line 177 of file wpa_supplicant_node.cpp.

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

Definition at line 161 of file wpa_supplicant_node.cpp.

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

Definition at line 142 of file wpa_supplicant_node.cpp.


Member Data Documentation

Definition at line 54 of file wpa_supplicant_node.cpp.

bool RosApi::initialized_ [private]

Definition at line 44 of file wpa_supplicant_node.cpp.

boost::condition_variable RosApi::main_thread_cv_ [private]

Definition at line 46 of file wpa_supplicant_node.cpp.

Definition at line 48 of file wpa_supplicant_node.cpp.

boost::mutex RosApi::mutex_

Definition at line 57 of file wpa_supplicant_node.cpp.

int RosApi::pipefd[2] [private]

Definition at line 49 of file wpa_supplicant_node.cpp.

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

Definition at line 50 of file wpa_supplicant_node.cpp.

volatile bool RosApi::shutting_down_ [private]

Definition at line 51 of file wpa_supplicant_node.cpp.

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

Definition at line 45 of file wpa_supplicant_node.cpp.


The documentation for this class was generated from the following file:


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:20