void (*wakeupCall)(THREAD);是什么用法?
俺正在看KVM的源代码,看到Thread.h文件中有一个struct定义,里面用到了这句:
void (*wakeupCall)(THREAD); /* Callback when thread's alarm goes off */
但不明白这是什么,还望各位大侠指点。
struct threadQueue {
......
THREAD nextAlarmThread; /* The next thread on this queue */
long wakeupTime[2]; /* We can't demand 8-byte alignment of heap
objects */
void (*wakeupCall)(THREAD); /* Callback when thread's alarm goes off */
......
}; /* End of THREAD data structure definition */