void *checkpoint_thread(void *arg) {
struct CitContext checkpointCC;
- CT_PUSH();
-
CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
memset(&checkpointCC, 0, sizeof(struct CitContext));
checkpointCC.cs_pid = 0;
pthread_setspecific(MyConKey, (void *)&checkpointCC );
- cdb_allocate_tsd();
-
- while (!CtdlThreadCheckStop(CT)) {
+ while (!CtdlThreadCheckStop()) {
cdb_checkpoint();
CtdlThreadSleep(60);
}