for performance, use eventfd instead on linux, refer to memcached
2013/1/10 Yutong Wu <wuyutong0...@gmail.com> > sorry, I misread, you can create two socket to simulate socket pair on > windows, for performance, use eventfd instead > > > 2013/1/10 Nick Mathewson <ni...@freehaven.net> > >> On Wed, Jan 9, 2013 at 2:09 PM, simon zhang <hapo...@gmail.com> wrote: >> > I wanted some linux code work in the windows.This is a multi thread >> > program.I hope that the parent thread and child thread to pass data >> through >> > the pipe. >> > But no file descriptor in windows.The CreatePipe function can creat a >> pipe >> > with read HANDLE and write HANDLE.But libevent don't konw HANDLE.I can >> not >> > use it in the event. >> > What is good way?Can't the pipe be used? >> >> Try evutil_socketpair(). On windows, Libevent currently only supports >> sockets, not handles. >> *********************************************************************** >> To unsubscribe, send an e-mail to majord...@freehaven.net with >> unsubscribe libevent-users in the body. >> > >