-/*
- * Main loop for the indexer thread.
- */
-void *indexer_thread(void *arg) {
- struct CitContext indexerCC;
-
- CtdlLogPrintf(CTDL_DEBUG, "indexer_thread() initializing\n");
-
- memset(&indexerCC, 0, sizeof(struct CitContext));
- indexerCC.internal_pgm = 1;
- indexerCC.cs_pid = 0;
- pthread_setspecific(MyConKey, (void *)&indexerCC );
-
- while (!CtdlThreadCheckStop()) {
- do_fulltext_indexing();
- CtdlThreadSleep(300);
- }
-
- CtdlLogPrintf(CTDL_DEBUG, "indexer_thread() exiting\n");
- return NULL;
-}
-