|
|
DbEnv::set_isalive |
#include <db_cxx.h>int DbEnv::set_isalive(int (*is_alive)(DbEnv *dbenv, pid_t pid, db_threadid_t tid));
Declare a function that returns if a thread of control (either a true thread or a process) is still running. The DbEnv::set_isalive method supports the DbEnv::failchk method. For more information, see Architecting Data Store and Concurrent Data Store applications, and Architecting Transactional Data Store applications.
The DbEnv::set_isalive method configures operations performed using the specified DbEnv handle, not all operations performed on the underlying database environment.
The DbEnv::set_isalive method may be called at any time during the life of the application.
The DbEnv::set_isalive method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.
The DbEnv::set_isalive method may fail and throw DbException, encapsulating one of the following non-zero errors, or return one of the following non-zero errors:
Copyright (c) 1996-2005 Sleepycat Software, Inc. - All rights reserved.