#include "ellLib.h"
#include "bucketLib.h"
#include "osiSock.h"
#include "epicsThread.h"
#include "libComAPI.h"
Go to the source code of this file.
|
LIBCOM_API fdctx *epicsStdCall | fdmgr_init (void) |
|
LIBCOM_API fdmgrAlarmId epicsStdCall | fdmgr_add_timeout (fdctx *pfdctx, struct timeval *ptimeout, pCallBackFDMgr pfunc, void *param) |
|
LIBCOM_API int epicsStdCall | fdmgr_clear_timeout (fdctx *pfdctx, fdmgrAlarmId id) |
|
LIBCOM_API int epicsStdCall | fdmgr_add_callback (fdctx *pfdctx, SOCKET fd, enum fdi_type fdi, pCallBackFDMgr pfunc, void *param) |
|
LIBCOM_API int epicsStdCall | fdmgr_clear_callback (fdctx *pfdctx, SOCKET fd, enum fdi_type fdi) |
|
LIBCOM_API int epicsStdCall | fdmgr_pend_event (fdctx *pfdctx, struct timeval *ptimeout) |
|
LIBCOM_API int epicsStdCall | fdmgr_clear_fd (fdctx *pfdctx, SOCKET fd) |
|
LIBCOM_API int epicsStdCall | fdmgr_add_fd (fdctx *pfdctx, SOCKET fd, pCallBackFDMgr pfunc, void *param) |
|
LIBCOM_API int epicsStdCall | fdmgr_delete (fdctx *pfdctx) |
|
#define NEW_FDMGR_ALARMID |
typedef void(* pCallBackFDMgr) (void *) |
Enumerator |
---|
alt_invalid |
|
alt_alarm |
|
alt_expired |
|
alt_free |
|
Definition at line 34 of file fdmgr.h.
Enumerator |
---|
fdi_read |
|
fdi_write |
|
fdi_excp |
|
Definition at line 33 of file fdmgr.h.
Definition at line 229 of file fdmgr.cpp.
249 fdiType = (unsigned) fdi;
251 if (fdiType>=fdiToFdRegTypeNElements) {
256 pfdrbc =
new fdRegForOldFdmgr (fd, fdiToFdRegType[fdiType], onceOnly, *pfdm, pFunc, pParam);
Definition at line 171 of file fdmgr.cpp.
174 double delay = ptimeout->tv_sec + ptimeout->tv_usec / static_cast <
const double> (
uSecPerSec);
186 (*pfdm, delay, pFunc, pParam);
193 id = pTimer->getId ();
const unsigned uSecPerSec
LIBCOM_API int epicsStdCall fdmgr_clear_callback |
( |
fdctx * |
pfdctx, |
|
|
SOCKET |
fd, |
|
|
enum fdi_type |
fdi |
|
) |
| |
Definition at line 271 of file fdmgr.cpp.
282 pFDR = pfdm->
lookUpFD (fd, fdiToFdRegType[fdi]);
LIBCOM_API class fdReg * lookUpFD(const SOCKET fd, const fdRegType type)
LIBCOM_API int epicsStdCall fdmgr_clear_fd |
( |
fdctx * |
pfdctx, |
|
|
SOCKET |
fd |
|
) |
| |
Definition at line 323 of file fdmgr.cpp.
LIBCOM_API int epicsStdCall fdmgr_clear_callback(fdctx *pfdctx, SOCKET fd, enum fdi_type fdi)
Definition at line 209 of file fdmgr.cpp.
215 pTimer = pfdm->resTbl.
remove (
id);
T * remove(const ID &idIn)
LIBCOM_API int epicsStdCall fdmgr_delete |
( |
fdctx * |
pfdctx | ) |
|
LIBCOM_API fdctx* epicsStdCall fdmgr_init |
( |
void |
| ) |
|
LIBCOM_API int epicsStdCall fdmgr_pend_event |
( |
fdctx * |
pfdctx, |
|
|
struct timeval * |
ptimeout |
|
) |
| |
Definition at line 298 of file fdmgr.cpp.
301 double delay = ptimeout->tv_sec + ptimeout->tv_usec / static_cast <
const double> (
uSecPerSec);
LIBCOM_API void process(double delay)
const unsigned uSecPerSec