how to pass a non static-member function as a callback?

后端 未结 8 622
深忆病人
深忆病人 2020-12-07 01:59

 
io_iterator_t enumerator;
kern_return_t   result;
result = IOServiceAddMatchingNotification(
             mNotifyPort,
             kIOMatchedNotification,
             


        
8条回答
  •  庸人自扰
    2020-12-07 02:38

    A non-static function has an implicit this parameter, and thus would have the wrong signature for the callback.

    Sorry, no easy way to avoid the jump island.

提交回复
热议问题