itss_sleep

This commit is contained in:
emanuel 2024-03-14 18:46:57 +00:00
parent 4156b733ce
commit 83f6acf5e7
7 changed files with 7 additions and 7 deletions

View File

@ -1239,7 +1239,7 @@ void* ca_service() {
nr_oer[0] = 4; // Facilities nr_oer[0] = 4; // Facilities
fi_oer[0] = 4; fi_oer[0] = 4;
while (!facilities.exit) { while (!facilities.exit) {
usleep(1000*50); itss_usleep(50*1000);
if (lightship_check() && facilities.lightship.active) { if (lightship_check() && facilities.lightship.active) {
switch (facilities.mver.defaultv) { switch (facilities.mver.defaultv) {

View File

@ -744,7 +744,7 @@ void *cp_service(){
is_radar_connected = radar_connection(RADAR_PORT); is_radar_connected = radar_connection(RADAR_PORT);
while(!facilities.exit){ 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 */ /* 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 */ /* To maintain the connection the content must be read */

View File

@ -432,7 +432,7 @@ void* den_service() {
pthread_mutex_unlock(&den->lock); pthread_mutex_unlock(&den->lock);
++sleep_count; ++sleep_count;
usleep(sleep4us); itss_usleep(sleep4us);
} }
return NULL; return NULL;

View File

@ -410,7 +410,7 @@ void *evcsn_service() {
tr_oer[0] = 4; // Facilities tr_oer[0] = 4; // Facilities
fi_oer[0] = 4; fi_oer[0] = 4;
while (!facilities.exit) { while (!facilities.exit) {
usleep(1000 * 1000); itss_usleep(1000 * 1000);
if (facilities.evm_args.activate) { if (facilities.evm_args.activate) {
rv = mk_evcsnm(npr->data.buf, (uint32_t *)&npr->data.size); rv = mk_evcsnm(npr->data.buf, (uint32_t *)&npr->data.size);
if (rv) { if (rv) {

View File

@ -578,7 +578,7 @@ void* infrastructure_service() {
pthread_mutex_unlock(&infrastructure->lock); pthread_mutex_unlock(&infrastructure->lock);
++sleep_count; ++sleep_count;
usleep(sleep4us); itss_usleep(sleep4us);
} }
return NULL; return NULL;

View File

@ -434,7 +434,7 @@ void *sa_service() {
tolling_tlsc_mgmt(facilities.tx_queue, &security_socket); 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); ASN_STRUCT_FREE(asn_DEF_EIS_NetworkingRequest, nr);

View File

@ -1210,7 +1210,7 @@ void* vc_service() {
} }
pthread_mutex_unlock(&coordination->lock); pthread_mutex_unlock(&coordination->lock);
usleep(50 * 1000); itss_usleep(50 * 1000);
} }
itss_0close(coordination->mgmt_socket); itss_0close(coordination->mgmt_socket);