sys_event_flag.cpp restored