diff options
Diffstat (limited to 'crawler.h')
-rw-r--r-- | crawler.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |