itss_sleep
This commit is contained in:
parent
4156b733ce
commit
83f6acf5e7
|
|
@ -1239,7 +1239,7 @@ void* ca_service() {
|
|||
nr_oer[0] = 4; // Facilities
|
||||
fi_oer[0] = 4;
|
||||
while (!facilities.exit) {
|
||||
usleep(1000*50);
|
||||
itss_usleep(50*1000);
|
||||
|
||||
if (lightship_check() && facilities.lightship.active) {
|
||||
switch (facilities.mver.defaultv) {
|
||||
|
|
|
|||
|
|
@ -744,7 +744,7 @@ void *cp_service(){
|
|||
is_radar_connected = radar_connection(RADAR_PORT);
|
||||
|
||||
while(!facilities.exit){
|
||||
usleep(1000*50);
|
||||
itss_usleep(1000*50);
|
||||
|
||||
/* If the Radar is not connected to TMC, a TCP socket is needed to fool the Radar */
|
||||
/* To maintain the connection the content must be read */
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ void* den_service() {
|
|||
pthread_mutex_unlock(&den->lock);
|
||||
|
||||
++sleep_count;
|
||||
usleep(sleep4us);
|
||||
itss_usleep(sleep4us);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ void *evcsn_service() {
|
|||
tr_oer[0] = 4; // Facilities
|
||||
fi_oer[0] = 4;
|
||||
while (!facilities.exit) {
|
||||
usleep(1000 * 1000);
|
||||
itss_usleep(1000 * 1000);
|
||||
if (facilities.evm_args.activate) {
|
||||
rv = mk_evcsnm(npr->data.buf, (uint32_t *)&npr->data.size);
|
||||
if (rv) {
|
||||
|
|
|
|||
|
|
@ -578,7 +578,7 @@ void* infrastructure_service() {
|
|||
pthread_mutex_unlock(&infrastructure->lock);
|
||||
|
||||
++sleep_count;
|
||||
usleep(sleep4us);
|
||||
itss_usleep(sleep4us);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
|
|||
|
|
@ -434,7 +434,7 @@ void *sa_service() {
|
|||
tolling_tlsc_mgmt(facilities.tx_queue, &security_socket);
|
||||
}
|
||||
|
||||
usleep(sleep_ms*1000);
|
||||
itss_usleep(sleep_ms*1000);
|
||||
}
|
||||
|
||||
ASN_STRUCT_FREE(asn_DEF_EIS_NetworkingRequest, nr);
|
||||
|
|
|
|||
Loading…
Reference in New Issue