#include <stddef.h>
#include "locationException.h"
#include "epicsAssert.h"
#include "fdManager.h"
#include "fdmgr.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 *pParam) |
|
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 *pParam) |
|
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_delete (fdctx *pfdctx) |
|
LIBCOM_API int epicsStdCall | fdmgr_clear_fd (fdctx *pfdctx, SOCKET fd) |
|
LIBCOM_API int epicsStdCall | fdmgr_add_fd (fdctx *pfdctx, SOCKET fd, void(*pfunc)(void *pParam), void *param) |
|
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);
LIBCOM_API int epicsStdCall fdmgr_add_fd |
( |
fdctx * |
pfdctx, |
|
|
SOCKET |
fd, |
|
|
void(*)(void *pParam) |
pfunc, |
|
|
void * |
param |
|
) |
| |
Definition at line 331 of file fdmgr.cpp.
LIBCOM_API int epicsStdCall fdmgr_add_callback(fdctx *pfdctx, SOCKET fd, enum fdi_type fdi, pCallBackFDMgr pFunc, void *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
const unsigned mSecPerSec = 1000u |
const unsigned uSecPerSec = 1000u * mSecPerSec |