diff options
author | dormando <dormando@rydia.net> | 2022-11-01 14:38:27 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2022-11-01 22:22:55 -0700 |
commit | 875371a75cbf1f92350de2d1fa0fae4a35ed572b (patch) | |
tree | ed38925e6afd54c4564b330ee12b6aeb8f1c035a /crawler.c | |
parent | 5d2da18808d50705f5038f304974d99f75c30f25 (diff) | |
download | memcached-875371a75cbf1f92350de2d1fa0fae4a35ed572b.tar.gz |
core: give threads unique names
allow users to differentiate thread functions externally to memcached.
Useful for setting priorities or pinning threads to CPU's.
Diffstat (limited to 'crawler.c')
-rw-r--r-- | crawler.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -569,6 +569,7 @@ int start_item_crawler_thread(void) { pthread_mutex_unlock(&lru_crawler_lock); return -1; } + thread_setname(item_crawler_tid, "mc-itemcrawler"); /* Avoid returning until the crawler has actually started */ pthread_cond_wait(&lru_crawler_cond, &lru_crawler_lock); pthread_mutex_unlock(&lru_crawler_lock); |