[Pacemaker] [patch 2/2] Prune glib from stonith api, don't require glib mainloop
Andrew Beekhof
andrew at beekhof.net
Mon May 2 13:41:55 UTC 2011
On Mon, May 2, 2011 at 3:37 PM, Dejan Muhamedagic <dejanmm at fastmail.fm> wrote:
> Hi,
>
> On Fri, Apr 29, 2011 at 12:48:09PM -0400, Marcus Barrow wrote:
>>
>> Version 2. I updated to apply cleanly on top of the previous patch and provided the following commit message:
>>
>> Medium: stonith: Allow clients to avoid use of Glib mainloop.
>>
>> Allow an application to avoid use of the Glib mainloop by polling
>> on the asyncronous file descriptor provided in the connect call.
>> Activity is then handled by using the newly provided dispatch api
>> routine, whcih calls stonith_dispatch().
>
> What is the merit of using another API instead of the mainloop?
Not another API, you'd just use poll().
FWIW, the intent here is to allow mainloop use without forcing it on others.
Pacemaker will continue to use mainloop, we're just simplifying things
for those that don't.
More information about the Pacemaker
mailing list