From 9cbdeda1d0a9074bd65da2aaf9c87b79545a1590 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 25 Oct 2017 15:00:52 -0700 Subject: fixes #45 expose aio to applications While here we added a test for the aio stuff, and cleaned up some dead code for the old fd notifications. There were a few improvements to shorten & clean code elsewhere, such as short-circuiting task wait when the task has no callback. The legacy sendmsg() and recvmsg() APIs are still in the socket core until we convert the device code to use the aios. --- src/core/socket.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index 6d9622e3..52310ef3 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -46,18 +46,8 @@ extern void nni_sock_ep_remove(nni_sock *, nni_ep *); // Note that each of these should be called without any locks held, since // the socket can reenter the protocol. -// nni_sock_send_pending is called by the protocol when it enqueues -// a send operation. The main purpose of this is to clear the raised -// signal raised on the event descriptor. -extern void nni_sock_send_pending(nni_sock *); - -// nni_sock_recv_pending is called by the protocl when it enqueues -// a receive operation. The main purpose of this is to clear the raised -// signal raised on the event descriptor. -extern void nni_sock_recv_pending(nni_sock *); - // nni_socket_sendq obtains the upper writeq. The protocol should -// recieve messages from this, and place them on the appropriate pipe. +// receive messages from this, and place them on the appropriate pipe. extern nni_msgq *nni_sock_sendq(nni_sock *); // nni_socket_recvq obtains the upper readq. The protocol should -- cgit v1.2.3-70-g09d2