static VALUE mTokyoMessenger_sync(VALUE vself){
  TCRDB *db = mTokyoMessenger_getdb(vself);

  return tcrdbsync(db) ? Qtrue : Qfalse;
}
Example #2
0
static int
rdb_sync(lua_State *L){
	TCRDB *rdb = rdb_getrdb(L, 1);
	lua_pushboolean(L, tcrdbsync(rdb));
	return 1;
}
Example #3
0
/* sync */
JNIEXPORT jboolean JNICALL Java_tokyotyrant_TCRDB_sync
(JNIEnv *env, jobject self){
  TCRDB *tcrdb = (TCRDB *)(intptr_t)(*env)->GetLongField(env, self, tcrdb_fid_ptr);
  return tcrdbsync(tcrdb);
}