Revision 508
position updating in separate thread. incomplete SIGINT handler
ColonetServer.cpp | ||
---|---|---|
91 | 91 |
return 0; |
92 | 92 |
} |
93 | 93 |
|
94 |
void* run_thread(void* arg) { |
|
95 |
PositionMonitor* p = (PositionMonitor*) arg; |
|
96 |
p->run(); |
|
97 |
return NULL; |
|
98 |
} |
|
99 |
|
|
100 |
int ColonetServer::run_position_monitor() { |
|
101 |
pthread_t posmon_thread; |
|
102 |
pthread_create(&posmon_thread, NULL, run_thread, &position_monitor); |
|
103 |
|
|
104 |
return 0; |
|
105 |
} |
|
106 |
|
|
94 | 107 |
/** |
95 | 108 |
* @brief Starts the server running (starts an infinite loop) |
96 | 109 |
*/ |
Also available in: Unified diff