14 lines
161 B
C
14 lines
161 B
C
|
#include <stdio.h>
|
||
|
|
||
|
#include <sys/atomic.h>
|
||
|
|
||
|
int fdev_notify(FILE* f,thread_t* notify){
|
||
|
if (f){
|
||
|
ATOMIC
|
||
|
|
||
|
f->notify = notify;
|
||
|
return 0;
|
||
|
}
|
||
|
return -1;
|
||
|
};
|