Reading Gauche/Reading Gauche 0.9/gc/include/private/gcconfig.h/IF_CANCEL


Top / Reading Gauche / Reading Gauche 0.9 / gc / include / private / gcconfig.h / IF_CANCEL

IF_CANCEL

概要

キャンセルのリクエスト(POSIX)が、コレクタ動作中に無視するために使用されるマクロ。CALCEL_SAFEが定義されていた場合は、括弧中の式が実行される。そうでない場合、無視される。

# if defined(UNIX_LIKE) && defined(THREADS) && !defined(NO_CANCEL_SAFE)
   /* Make the code cancellation-safe.  This basically means that we	*/
   /* ensure that cancellation requests are ignored while we are in	*/
   /* the collector.  This applies only to Posix deferred cancellation;*/
   /* we don't handle Posix asynchronous cancellation.			*/
   /* Note that this only works if pthread_setcancelstate is 		*/
   /* async-signal-safe, at least in the absence of asynchronous	*/
   /* cancellation.  This appears to be true for the glibc version, 	*/
   /* though it is not documented.  Without that assumption, there	*/
   /* seems to be no way to safely wait in a signal handler, which	*/
   /* we need to do for thread suspension.				*/
   /* Also note that little other code appears to be cancellation-safe.*/
   /* Hence it may make sense to turn this off for performance.	*/
#   define CANCEL_SAFE
#   define IF_CANCEL(x) x
# else
#   define IF_CANCEL(x)
# endif

参照元

コメント

コメントはありません。 コメント/Reading Gauche/Reading Gauche 0.9/gc/include/private/gcconfig.h/IF_CANCEL?

お名前:

MENU

now: 7

リンク


最新の20件
2020-05-22 2020-05-14 2020-05-12 2020-05-10 2020-04-27 2020-03-23
最新の20件
2010-02-01 2010-01-31 2010-01-30 2010-01-29 2010-01-16

Counter: 1348, today: 1, yesterday: 0

リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

Last-modified: 2010-01-03 (日) 21:12:46 (3794d);  Modified by mona
PukiWiki 1.4.6 Copyright © 2001-2005 PukiWiki Developers Team. License is GPL.
Based on "PukiWiki" 1.3 by yu-ji
Powered by PHP 5.2.17
HTML convert time to 0.039 sec.