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

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

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


        
8条回答
  •  我在风中等你
    2020-12-07 02:35

    if you put this line in your constructor (or in any instance method) then you should be able to do this.instanceMethod() to refer to the instance method.

提交回复
热议问题