This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to obtain pthread_suspend


On Sat, Sep 14, 2013 at 7:55 AM, Joël Krähemann <weedlight@gmail.com> wrote:
> I'll do a work-around but as long I can't suspend/resume the GUI loop,
> it will block AgsTaskThread. I think that async-signal operations need a
> point where it is synced else it won't be safe or you are doing some
> ugly mutices scattered all along the code.

If you have complete control, and you need to suspend and resume at
specific points then you can use a condition variable.

Signals will work, but if, like you said, you have some
uninterruptable sections, then you need to use something like a
condition variable.

Cheers,
Carlos


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]