From 875371a75cbf1f92350de2d1fa0fae4a35ed572b Mon Sep 17 00:00:00 2001 From: dormando Date: Tue, 1 Nov 2022 14:38:27 -0700 Subject: core: give threads unique names allow users to differentiate thread functions externally to memcached. Useful for setting priorities or pinning threads to CPU's. --- memcached.h | 1 + 1 file changed, 1 insertion(+) (limited to 'memcached.h') diff --git a/memcached.h b/memcached.h index 48d0092..af47463 100644 --- a/memcached.h +++ b/memcached.h @@ -994,6 +994,7 @@ void STATS_UNLOCK(void); void threadlocal_stats_reset(void); void threadlocal_stats_aggregate(struct thread_stats *stats); void slab_stats_aggregate(struct thread_stats *stats, struct slab_stats *out); +void thread_setname(pthread_t thread, const char *name); LIBEVENT_THREAD *get_worker_thread(int id); /* Stat processing functions */ -- cgit v1.2.1