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