Skip to content

Commit

Permalink
delete sigio
Browse files Browse the repository at this point in the history
  • Loading branch information
segzix committed Dec 10, 2024
1 parent 0a8549b commit 8cb04d0
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 219 deletions.
2 changes: 1 addition & 1 deletion src/comm/comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "mem.h" // diffserver, getserver, diffgrantserver, getpgrantserver
#include "setting.h"
#include "syn.h" // acqserver, inverver, relserver, wtntserver, barrserver, barrgrantserver, acqgrantserver
#include "tools.h" // jiaexitserver, enable_sigio, disable_sigio, jia_current_time, newmsg, printmsg, get_usecs, emptyprintf
#include "tools.h" // jiaexitserver, jia_current_time, newmsg, printmsg, get_usecs, emptyprintf
#include "utils.h"
// waitgrantserver, waitserver, setcvserver, resetcvserver, waitcvserver,
// cvgrantserver,
Expand Down
2 changes: 0 additions & 2 deletions src/include/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ void printstack(int ptr);
unsigned long jia_current_time();
float jia_clock();
void jiasleep(unsigned long);
void disable_sigio();
void enable_sigio();
void freewtntspace(wtnt_t *ptr);
wtnt_t *newwtnt();
void newtwin(address_t *twin);
Expand Down
17 changes: 0 additions & 17 deletions src/include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,6 @@ static char *mainstr = "[Thread main ]";
exit(EXIT_FAILURE); \
}

extern int oldsigiomask;
#define BEGINCS \
{ \
sigset_t newmask, oldmask; \
sigemptyset(&newmask); \
sigaddset(&newmask, SIGIO); \
sigprocmask(SIG_BLOCK, &newmask, &oldmask); \
oldsigiomask = sigismember(&oldmask, SIGIO); \
VERBOSE_LOG(3, "Enter CS\t"); \
}
#define ENDCS \
{ \
if (oldsigiomask == 0) \
enable_sigio(); \
VERBOSE_LOG(3, "Exit CS\n"); \
}


int open_logfile(char *filename, int argc, char **argv);
char* op2name(int op);
Expand Down
2 changes: 0 additions & 2 deletions src/init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ extern void initcomm();
extern void initmsg();
extern void inittools();
extern void initload();
extern void disable_sigio();
extern void enable_sigio();
extern unsigned long jia_current_time();
extern float jia_clock();
extern unsigned int get_usecs();
Expand Down
Loading

0 comments on commit 8cb04d0

Please sign in to comment.