aboutsummaryrefslogtreecommitdiffstats
path: root/comms/p5-Device-Modem
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-09-26 14:32:40 +0800
committerdaichi <daichi@FreeBSD.org>2003-09-26 14:32:40 +0800
commit592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63 (patch)
tree2a27e2c74674c54778e55220b04ba613b8881b85 /comms/p5-Device-Modem
parent8666323e06d31ce6185f8969559532f370184ece (diff)
downloadfreebsd-ports-gnome-592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63.tar.gz
freebsd-ports-gnome-592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63.tar.zst
freebsd-ports-gnome-592f0e713c1bfe28a0ff3cdfc90c0b31b3379b63.zip
update: news/inn
- Now config files are not removed - add many knobs - Use USE_OPENSSL hook PR: 57160 Submitted by: Clement Laforet <sheepkiller@cultdeadsheep.org> (maintainer)
Diffstat (limited to 'comms/p5-Device-Modem')
0 files changed, 0 insertions, 0 deletions
>(EMsgPort *mp); void e_msgport_put(EMsgPort *mp, EMsg *msg); EMsg *e_msgport_wait(EMsgPort *mp); EMsg *e_msgport_get(EMsgPort *mp); void e_msgport_reply(EMsg *msg); /* e threads, a server thread with a message based request-response, and flexible queuing */ typedef struct _EThread EThread; typedef enum { E_THREAD_QUEUE = 0, /* run one by one, until done, if the queue_limit is reached, discard new request */ E_THREAD_DROP, /* run one by one, until done, if the queue_limit is reached, discard oldest requests */ E_THREAD_NEW, /* always run in a new thread, if the queue limit is reached, new requests are stored in the queue until a thread becomes available for it, creating a thread pool */ } e_thread_t; typedef void (*EThreadFunc)(EThread *, EMsg *, void *data); EThread *e_thread_new(e_thread_t type); void e_thread_destroy(EThread *e); void e_thread_set_queue_limit(EThread *e, int limit); void e_thread_set_msg_lost(EThread *e, EThreadFunc destroy, void *data); void e_thread_set_msg_destroy(EThread *e, EThreadFunc destroy, void *data); void e_thread_set_reply_port(EThread *e, EMsgPort *reply_port); void e_thread_set_msg_received(EThread *e, EThreadFunc received, void *data); void e_thread_put(EThread *e, EMsg *msg); /* sigh, another mutex interface, this one allows different mutex types, portably */ typedef struct _EMutex EMutex; typedef enum _e_mutex_t { E_MUTEX_SIMPLE, /* == pthread_mutex */ E_MUTEX_REC, /* recursive mutex */ } e_mutex_t; EMutex *e_mutex_new(e_mutex_t type); int e_mutex_destroy(EMutex *m); int e_mutex_lock(EMutex *m); int e_mutex_unlock(EMutex *m); void e_mutex_assert_locked(EMutex *m); #endif