PostgreSQL解読室:
shmem_exit()/postgresql-8.1.4
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
このページを編集する際は、[[編集に関する方針]]に従ってく...
*概要 [#s6248684]
-対象:8.1.4
-言語:C
-宣言:[[postgresql-8.1.4/src/include/storage/ipc.h]]
-定義:[[postgresql-8.1.4/src/backend/storage/ipc/ipc.c]]
-宣言・定義:[[postgresql-8.1.4/src/backend/port/ipc_test...
**[[postgresql-8.1.4/src/backend/port/ipc_test.c]](バイナ...
-[[on_shmem_exit_index/postgresql-8.1.4]]に0をセットする。
**[[postgresql-8.1.4/src/backend/storage/ipc/ipc.c]] [#c1...
-(概要を書いてください)
*引数 [#q734839f]
-int code --
*実装 [#cf4618a3]
**[[postgresql-8.1.4/src/backend/port/ipc_test.c]] [#o300...
void
shmem_exit(int code)
{
while (--on_shmem_exit_index >= 0)
-[[on_shmem_exit_index/postgresql-8.1.4]] -- バイナリipc_...
(*on_shmem_exit_list[on_shmem_exit_index].function) (co...
on_shmem_exit_list[on_shmem_exit_index].arg);
-[[on_shmem_exit_list/postgresql-8.1.4]] -- 下記メンバを...
--void型への関数ポインタfunction
--Datum型(unsigned intの別名)の変数arg
on_shmem_exit_index = 0;
-[[on_shmem_exit_index/postgresql-8.1.4]] -- 上記参照
}
**[[postgresql-8.1.4/src/backend/storage/ipc/ipc.c]] [#c9...
/* ------------------
* Run all of the on_shmem_exit routines --- but don't ac...
* This is used by the postmaster to re-initialize shared...
* semaphores after a backend dies horribly.
* ------------------
*/
void
shmem_exit(int code)
{
elog(DEBUG3, "shmem_exit(%d)", code);
/*
* call all the registered callbacks.
*
* As with proc_exit(), we remove each callback from the...
* calling it, to avoid infinite loop in case of error.
*/
while (--on_shmem_exit_index >= 0)
(*on_shmem_exit_list[on_shmem_exit_index].function) (co...
on_shmem_exit_list[on_shmem_exit_index].arg);
on_shmem_exit_index = 0;
}
*呼出元 [#w065b37e]
-[[proc_exit()/postgresql-8.1.4]]
*備考 [#c19e7d4f]
*履歴 [#d48b5ff3]
-作者:[[testnoda/ページ作者]]
-日付:????/?/?
|更新日|更新者|更新内容|
||||
終了行:
このページを編集する際は、[[編集に関する方針]]に従ってく...
*概要 [#s6248684]
-対象:8.1.4
-言語:C
-宣言:[[postgresql-8.1.4/src/include/storage/ipc.h]]
-定義:[[postgresql-8.1.4/src/backend/storage/ipc/ipc.c]]
-宣言・定義:[[postgresql-8.1.4/src/backend/port/ipc_test...
**[[postgresql-8.1.4/src/backend/port/ipc_test.c]](バイナ...
-[[on_shmem_exit_index/postgresql-8.1.4]]に0をセットする。
**[[postgresql-8.1.4/src/backend/storage/ipc/ipc.c]] [#c1...
-(概要を書いてください)
*引数 [#q734839f]
-int code --
*実装 [#cf4618a3]
**[[postgresql-8.1.4/src/backend/port/ipc_test.c]] [#o300...
void
shmem_exit(int code)
{
while (--on_shmem_exit_index >= 0)
-[[on_shmem_exit_index/postgresql-8.1.4]] -- バイナリipc_...
(*on_shmem_exit_list[on_shmem_exit_index].function) (co...
on_shmem_exit_list[on_shmem_exit_index].arg);
-[[on_shmem_exit_list/postgresql-8.1.4]] -- 下記メンバを...
--void型への関数ポインタfunction
--Datum型(unsigned intの別名)の変数arg
on_shmem_exit_index = 0;
-[[on_shmem_exit_index/postgresql-8.1.4]] -- 上記参照
}
**[[postgresql-8.1.4/src/backend/storage/ipc/ipc.c]] [#c9...
/* ------------------
* Run all of the on_shmem_exit routines --- but don't ac...
* This is used by the postmaster to re-initialize shared...
* semaphores after a backend dies horribly.
* ------------------
*/
void
shmem_exit(int code)
{
elog(DEBUG3, "shmem_exit(%d)", code);
/*
* call all the registered callbacks.
*
* As with proc_exit(), we remove each callback from the...
* calling it, to avoid infinite loop in case of error.
*/
while (--on_shmem_exit_index >= 0)
(*on_shmem_exit_list[on_shmem_exit_index].function) (co...
on_shmem_exit_list[on_shmem_exit_index].arg);
on_shmem_exit_index = 0;
}
*呼出元 [#w065b37e]
-[[proc_exit()/postgresql-8.1.4]]
*備考 [#c19e7d4f]
*履歴 [#d48b5ff3]
-作者:[[testnoda/ページ作者]]
-日付:????/?/?
|更新日|更新者|更新内容|
||||
ページ名: