summaryrefslogtreecommitdiff
path: root/mod_db4/utils.h
blob: 9a2dd3c3b6ccb25aa30b69577b1899fb6f4cc626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*-
 * Copyright (c) 2004-2009 Oracle.  All rights reserved.
 *
 * http://www.apache.org/licenses/LICENSE-2.0.txt
 * 
 * authors: George Schlossnagle <george@omniti.com>
 */

#ifndef DB4_UTILS_H
#define DB4_UTILS_H

#include "db_cxx.h"
#include "mod_db4_export.h"

/* locks */
int env_locks_init();
void env_global_rw_lock();
void env_global_rd_lock();
void env_global_unlock();
void env_wait_for_child_crash();
void env_child_crash();
void env_ok_to_proceed();

void env_rsrc_list_init();

int global_ref_count_increase(char *path);
int global_ref_count_decrease(char *path);
int global_ref_count_get(const char *path);
void global_ref_count_clean();

#endif
/* vim: set ts=4 sts=4 expandtab bs=2 ai fdm=marker: */