aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_threads.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-09-08 12:03:33 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-09-08 12:03:33 +0300
commita9bc3198c8571bd0ceb074ceb8c94b283a6c6696 (patch)
treedaa7d2a64a52c16d0d389ca0d752ad185fb3e86f /src/microhttpd/mhd_threads.h
parente55b0418ecae1aea289e8197ef0850690c5fa3f1 (diff)
downloadlibmicrohttpd-a9bc3198c8571bd0ceb074ceb8c94b283a6c6696.tar.gz
libmicrohttpd-a9bc3198c8571bd0ceb074ceb8c94b283a6c6696.zip
Renamed 'pid' -> 'tid' when used for threads
Diffstat (limited to 'src/microhttpd/mhd_threads.h')
-rw-r--r--src/microhttpd/mhd_threads.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/mhd_threads.h b/src/microhttpd/mhd_threads.h
index 4cd60974..925ac95d 100644
--- a/src/microhttpd/mhd_threads.h
+++ b/src/microhttpd/mhd_threads.h
@@ -161,16 +161,16 @@ typedef struct _MHD_thread_handle_ID_ MHD_thread_handle_ID_;
161 * @param ID thread ID to match 161 * @param ID thread ID to match
162 * @return nonzero on match, zero otherwise 162 * @return nonzero on match, zero otherwise
163 */ 163 */
164# define MHD_thread_ID_is_current_thread_(pid) \ 164# define MHD_thread_ID_is_current_thread_(tid) \
165 (pthread_equal ((pid).ID, pthread_self ())) 165 (pthread_equal ((tid).ID, pthread_self ()))
166#elif defined(MHD_USE_W32_THREADS) 166#elif defined(MHD_USE_W32_THREADS)
167/** 167/**
168 * Check whether provided thread ID matches current thread. 168 * Check whether provided thread ID matches current thread.
169 * @param ID thread ID to match 169 * @param ID thread ID to match
170 * @return nonzero on match, zero otherwise 170 * @return nonzero on match, zero otherwise
171 */ 171 */
172# define MHD_thread_ID_is_current_thread_(pid) \ 172# define MHD_thread_ID_is_current_thread_(tid) \
173 (GetCurrentThreadId () == (pid).ID) 173 (GetCurrentThreadId () == (tid).ID)
174#endif 174#endif
175 175
176#if defined(MHD_USE_POSIX_THREADS) 176#if defined(MHD_USE_POSIX_THREADS)