コード例 #1
0
// Warning: this is a little broken, as there are places where we do blocking reads or writes against the extent socket.
// The hope is this won't make much difference because the extents are unlikely to fill enough space to ever actually block.
void fable_set_nonblocking_shmem_pipe(void* handle) {

  struct shmem_pipe_handle *sp = (struct shmem_pipe_handle*)handle;
  setnb_fd(sp->fd);
  
}
コード例 #2
0
ファイル: fable_unixdomain.c プロジェクト: avsm/memcached
void fable_set_nonblocking_unixdomain(struct fable_handle* handle) {

  setnb_fd(*((int*)handle));

}