📄 aeecallbackutil.h
字号:
#ifndef AEECALLBACK_H
#define AEECALLBACK_H /* #ifndef AEECallback_H */
/*============================================================================
FILE: AEECallbackUtil.h
SERVICES:
making AEECallback easier to deal with, mapping shell/socket stuff to
AEECallback
GENERAL DESCRIPTION:
The following stubs create AEECallback-based versions of socket and timer
calls:
AEECallback_SetTimer
AEECallback_Readable
AEECallback_Writeable
AEECallback_Connect
AEECallback-based scheduling corresponds perfectly to a thread's
needs. The AEECallback record keeps track of which thing is
scheduled so that only one thing is scheduled and whatever is
scheduled can always be canceled readily.
Given a AEECallback-based asynchronous function, we can usually
construct a blocking threaded version with two lines of code:
DoSomethingCBK( <args> , ITHREAD_GetResumeCallback(piThread));
ITHREAD_Suspend(piThread);
============================================================================
Copyright
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -