summaryrefslogtreecommitdiff
path: root/crawler.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawler.h')
-rw-r--r--crawler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawler.h b/crawler.h
index f7ebba2..e96c449 100644
--- a/crawler.h
+++ b/crawler.h
@@ -28,7 +28,9 @@ enum crawler_result_type {
CRAWLER_OK=0, CRAWLER_RUNNING, CRAWLER_BADCLASS, CRAWLER_NOTSTARTED, CRAWLER_ERROR
};
int start_item_crawler_thread(void);
-int stop_item_crawler_thread(void);
+#define CRAWLER_WAIT true
+#define CRAWLER_NOWAIT false
+int stop_item_crawler_thread(bool wait);
int init_lru_crawler(void *arg);
enum crawler_result_type lru_crawler_crawl(char *slabs, enum crawler_run_type,
void *c, const int sfd, unsigned int remaining);