[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] Can the pipe be used in event_new function as file descriptor(evutil_socket_t) in windows?



maybe you can use eventfd but required linux2.6.28 above

2013/1/10 simon zhang <hapopen@xxxxxxxxx>
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?