This commit is contained in:
zy
2023-11-27 20:34:06 -05:00
parent 7e3b4ded0c
commit e560158cbc
10 changed files with 65 additions and 149 deletions

View File

@@ -45,14 +45,14 @@ int cancel_watch() {
void init_watch_arg(watch_arg *wg, char *name, void *ptr,
int length_byte, long long threshold,
unsigned char unsigned_flag,
unsigned char is_unsigned,
unsigned char above_threshold, unsigned long time_ns){
wg->task_id = getpid();
strncpy(wg->name, name, (MAX_NAME_LEN + 1));
wg->ptr = ptr;
wg->length_byte = length_byte;
wg->threshold = threshold;
wg->unsigned_flag = unsigned_flag;
wg->is_unsigned = is_unsigned;
wg->above_threshold = above_threshold;
wg->time_ns = time_ns;
}