[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] qemu-thread: add cleanup_push() and cleanup
|
From: |
Paul Brook |
|
Subject: |
Re: [Qemu-devel] [PATCH 2/3] qemu-thread: add cleanup_push() and cleanup_pop() |
|
Date: |
Thu, 3 Jun 2010 06:50:38 +0100 |
|
User-agent: |
KMail/1.13.3 (Linux/2.6.33-2-amd64; KDE/4.4.3; x86_64; ; ) |
> From pthread man:
>
> These functions manipulate the calling thread's stack of
> thread-cancellation clean-up handlers. A clean-up handler is
> a function that is automatically executed when a thread is canceled
> [...] it might, for example, unlock a mutex so that it becomes
> available to other threads in the process.
Do we really need to use thread cancellation?
It's one of those features that makes me extremely nervous. Especially in C
code where people generally aren't expecting exceptions to be thrown.
Paul
| [Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH 2/3] qemu-thread: add cleanup_push() and cleanup_pop(),
Paul Brook <=