1/*-
2 * Copyright (c) 2004,2008 Oracle.  All rights reserved.
3 *
4 * http://www.apache.org/licenses/LICENSE-2.0.txt
5 *
6 * authors: George Schlossnagle <george@omniti.com>
7 */
8
9#ifndef DB4_UTILS_H
10#define DB4_UTILS_H
11
12#include "db_cxx.h"
13#include "mod_db4_export.h"
14
15/* locks */
16int env_locks_init();
17void env_global_rw_lock();
18void env_global_rd_lock();
19void env_global_unlock();
20void env_wait_for_child_crash();
21void env_child_crash();
22void env_ok_to_proceed();
23
24void env_rsrc_list_init();
25
26int global_ref_count_increase(char *path);
27int global_ref_count_decrease(char *path);
28int global_ref_count_get(const char *path);
29void global_ref_count_clean();
30
31#endif
32/* vim: set ts=4 sts=4 expandtab bs=2 ai fdm=marker: */
33