}
/* LCOV_EXCL_START */
-static bool
-_tbm_bufmgr_mutex_init(void)
-{
- static bool tbm_bufmgr_mutex_init = false;
-
- if (tbm_bufmgr_mutex_init)
- return true;
-
- if (pthread_mutex_init(&tbm_bufmgr_lock, NULL)) {
- TBM_ERR("fail: Cannot pthread_mutex_init for tbm_bufmgr_lock.\n");
- return false;
- }
-
- tbm_bufmgr_mutex_init = true;
-
- return true;
-}
void
_tbm_bufmgr_mutex_lock(void)
{
- if (!_tbm_bufmgr_mutex_init()) {
- TBM_ERR("fail: _tbm_bufmgr_mutex_init()\n");
- return;
- }
-
pthread_mutex_lock(&tbm_bufmgr_lock);
}
bufmgr->bufmgr_data = bufmgr_data;
TBM_DBG("Success to load module(%s)\n", file);
+ TBM_STDOUT_INFO("Success to load module(%s)", file);
return 1;
gettimeofday(&start_tv, NULL);
#endif
- /* LCOV_EXCL_START */
-#ifdef HAVE_DLOG
- env = getenv("TBM_DLOG");
- if (env) {
- bDlog = atoi(env);
- TBM_DBG("TBM_DLOG=%s\n", env);
- } else
- bDlog = 1;
-#endif
+ bDlog = 1;
+ /* LCOV_EXCL_START */
#ifdef TRACE
env = getenv("TBM_TRACE");
if (env) {
}
/* load bufmgr priv from env */
+ TBM_STDOUT_INFO("loading backend module");
if (!_tbm_load_module(gBufMgr, gBufMgr->fd)) {
TBM_ERR("error : Fail to load bufmgr backend\n");
_tbm_set_last_result(TBM_ERROR_INVALID_OPERATION);
return NULL;
}
+ TBM_STDOUT_INFO("loading backend module done");
/* LCOV_EXCL_STOP */
gBufMgr->ref_count = 1;