[Libevent-users] Fail to unsubscribe

2013-01-09 Thread Richter , Jörg
Sorry to bother the list, but sending an email to majord...@freehaven.net with "unsubscribe libevent-users" in the body does not work. Seems like Majordomo does not understand base64 encoding: dW5zdWJzY3JpYmUgbGliZXZlbnQtdXNlcnMNCg== Command 'dw5zdwjzy3jpymugbglizxzlbnqtdxnlcnmncg==' n

Re: [Libevent-users] multithreading problem

2013-01-09 Thread Mark Ellzey
On Tue, Jan 08, 2013 at 11:29:01PM +0100, Bj?rn K. wrote: > This is the valgrind --tool=helgrind output. The first part appears > for every connection to the server: -- cut -- Yikes, I will dig into this. *** To unsubscribe, se

Re: [Libevent-users] multithreading problem

2013-01-09 Thread Mark Ellzey
On Wed, Jan 09, 2013 at 11:22:43AM -0600, Mark Ellzey wrote: > On Tue, Jan 08, 2013 at 11:29:01PM +0100, Bj?rn K. wrote: > > This is the valgrind --tool=helgrind output. The first part appears > > for every connection to the server: > -- cut -- > OK, you need to add a mutex around anything that

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

2013-01-09 Thread simon zhang
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

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

2013-01-09 Thread Nick Mathewson
On Wed, Jan 9, 2013 at 2:09 PM, simon zhang 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 rea

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

2013-01-09 Thread Yutong Wu
sorry, I misread, you can create two socket to simulate socket pair on windows, for performance, use eventfd instead 2013/1/10 Nick Mathewson > On Wed, Jan 9, 2013 at 2:09 PM, simon zhang wrote: > > I wanted some linux code work in the windows.This is a multi thread > > program.I hope that the

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

2013-01-09 Thread Yutong Wu
for performance, use eventfd instead on linux, refer to memcached 2013/1/10 Yutong Wu > sorry, I misread, you can create two socket to simulate socket pair on > windows, for performance, use eventfd instead > > > 2013/1/10 Nick Mathewson > >> On Wed, Jan 9, 2013 at 2:09 PM, simon zhang wrote: