Browse Source

Test

etomic
jl777 7 years ago
parent
commit
c35f95d730
  1. 1
      crypto777/nanosrc/core/pipe.c
  2. 4
      crypto777/nanosrc/nn_config.h

1
crypto777/nanosrc/core/pipe.c

@ -176,6 +176,7 @@ int nn_pipe_send(struct nn_pipe *self,struct nn_msg *msg)
int rc;
struct nn_pipebase *pipebase;
pipebase = (struct nn_pipebase *)self;
printf("pipesend\n");
nn_assert (pipebase->outstate == NN_PIPEBASE_OUTSTATE_IDLE);
pipebase->outstate = NN_PIPEBASE_OUTSTATE_SENDING;
rc = pipebase->vfptr->send(pipebase,msg);

4
crypto777/nanosrc/nn_config.h

@ -31,8 +31,8 @@
#define NN_HAVE_SEMAPHORE 1 // must have
// need one of following 3, listed in order of precedence, used by efd*
//#define NN_HAVE_EVENTFD 1
#define NN_HAVE_PIPE 1
#define NN_HAVE_EVENTFD 1
//#define NN_HAVE_PIPE 1
//#define NN_HAVE_SOCKETPAIR 1
// need one of following 3, listed in order of precedence, used by poller*

Loading…
Cancel
Save