This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Determining cancellation points in glibc
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Loic Domaigne" <tech at domaigne dot com>
- Cc: mtk dot manpages at gmail dot com, libc-help <libc-help at sourceware dot org>
- Date: Tue, 25 Nov 2008 08:52:15 -0500
- Subject: Re: Determining cancellation points in glibc
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=sHCxwigvB+hXVestU9UL/CnzyofsM2MtG9W1Ey6VwD0=; b=ZagTaAC3XGFbAbEnzvjUz1rV7Ji7oTyNWKtMa7/ahKmpZfUES8dZK8g2rqMj3Ef9rE zPN1Khml76tTrI62uI6FVrAHqBP0s+j1qQKkjzRzbBNzYmA/7wmrFa84ay4ccl/Qp6oh WT/9YgKIc0ycbRebPxe/hWGdhRJzUHSEmuoRU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=sDm1m3x8dE/kH0DPPo+7nRiQ9HB+WTo7gJXbTb+95f/rU8Bw/NfzMkx63uRSdoodv0 xGjq76AHu8eHLGD2Ad3hA1aL+I9C5xsWtAKkFQopcKJWvVosj1HMERlJqgqjZIUzqAoA dXbE4t1hjsSxHh3DtPW4ufqgucsVPdoujwwIk=
- References: <cfd18e0f0811240927u1424bbadxc4907ef15210794a@mail.gmail.com> <119aab440811240945g35c65b55tb89860a52eb45eee@mail.gmail.com> <492B1343.1020403@domaigne.com>
On Mon, Nov 24, 2008 at 3:49 PM, Loic Domaigne <tech@domaigne.com> wrote:
> I came to similar conclusions. But what about composite functions like
> printf(), scanf() etc.?
Good point.
5. Any C code contains a cancellation point if it calls functions from
1-4 which contains a cancellation point.
6. Any C code which sets the thread cancellation state to enabled and
calls pthread_testcancel() to create a cancellation point.
I think that's all the conditions?
Cheers,
Carlos.