摘要:
首先看两个runloop的示例,来源:http://paste.lisp.org/display/86524第一个:#include<CoreFoundation/CoreFoundation.h>staticvoid_perform(void*info__unused){printf("hello\n");}staticvoid_timer(CFRunLoopTimerReftimer__unused,void*info){CFRunLoopSourceSignal(info);}intmain(){CFRunLoopSourceRefsource;CFRun 阅读全文