Re: [sheepdog] [PATCH v3 1/3] sheep: allow {register, unregister}_event to be called in worker thread

2013-12-17 Thread Liu Yuan
On Tue, Dec 17, 2013 at 05:34:44PM +0900, Hitoshi Mitake wrote: > At Tue, 17 Dec 2013 16:29:43 +0800, > Liu Yuan wrote: > > > > For now we can only call them in the main thread, which is designed for long > > running or infrequent events. This would be inefficient if we want to deal > > with > >

Re: [sheepdog] [PATCH v3 1/3] sheep: allow {register, unregister}_event to be called in worker thread

2013-12-17 Thread Hitoshi Mitake
At Tue, 17 Dec 2013 16:29:43 +0800, Liu Yuan wrote: > > For now we can only call them in the main thread, which is designed for long > running or infrequent events. This would be inefficient if we want to deal > with > short running and frequent events that register/unregister the events in the >

[sheepdog] [PATCH v3 1/3] sheep: allow {register, unregister}_event to be called in worker thread

2013-12-17 Thread Liu Yuan
For now we can only call them in the main thread, which is designed for long running or infrequent events. This would be inefficient if we want to deal with short running and frequent events that register/unregister the events in the worker thread 1. avoid to be trapped to main thread for performa