This is the mail archive of the
mailing list for the glibc project.
Re: how to obtain pthread_suspend
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: Joël Krähemann <weedlight at gmail dot com>
- Cc: "Carlos O'Donell" <carlos at redhat dot com>, "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Sat, 14 Sep 2013 13:53:16 -0400
- Subject: Re: how to obtain pthread_suspend
- Authentication-results: sourceware.org; auth=none
- References: <1379106662 dot 542 dot 12 dot camel at debianWEED> <52337CB1 dot 9010806 at redhat dot com> <1379159716 dot 4109 dot 7 dot camel at debianWEED>
On Sat, Sep 14, 2013 at 7:55 AM, Joël Krähemann <email@example.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