#include <server.h>
Public Member Functions | |
void | checkTimeout () |
int | lock (int socket, float timeout) |
SerialServerLock () | |
void | unlock () |
Protected Attributes | |
pthread_cond_t | condition_ |
int | last_socket_ |
pthread_mutex_t | mutex_ |
int | socket_ |
struct timeval | timeout_ |
Definition at line 5 of file server.cpp.
void SerialServerLock::checkTimeout | ( | ) |
Definition at line 12 of file server.cpp.
int SerialServerLock::lock | ( | int | socket, |
float | timeout | ||
) |
Definition at line 32 of file server.cpp.
void SerialServerLock::unlock | ( | ) |
Definition at line 86 of file server.cpp.
pthread_cond_t SerialServerLock::condition_ [protected] |
int SerialServerLock::last_socket_ [protected] |
pthread_mutex_t SerialServerLock::mutex_ [protected] |
int SerialServerLock::socket_ [protected] |
struct timeval SerialServerLock::timeout_ [protected] |