76
77
MacSystemWatch::MacSystemWatch()
78
79
// Initialize sleep callback
81
root_port = IORegisterForSystemPower(0, ¬ify, sleepCallBack, &anIterator);
82
root_port = IORegisterForSystemPower(this, ¬ify, sleepCallBack, &anIterator);
85
87
CFRunLoopAddSource(CFRunLoopGetCurrent(), IONotificationPortGetRunLoopSource(notify), kCFRunLoopCommonModes);