From 32349ab58bbb59fdaa2b011bd41cf087a9920aac Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 29 Jan 2022 14:23:06 +1000 Subject: [PATCH] update README.multithreading Signed-off-by: Ronnie Sahlberg --- README.multithreading | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.multithreading b/README.multithreading index b5daa8a..d60c27b 100644 --- a/README.multithreading +++ b/README.multithreading @@ -1,6 +1,7 @@ Multithreading ============== -Libnfs supports multithreading using the pthread API. +Libnfs supports multithreading using the pthread API on linux/unix and using +the native API for Windows. By default libnfs is beuilt without pthread support to avoid the overhead for locking, but pthread support, and thus support for multithreading, can be configured using --enable-pthread @@ -89,12 +90,11 @@ nfs_mt_sem_destroy() nfs_mt_sem_post() nfs_mt_sem_wait() : Wrappers that implement the 4 basic semaphore calls. +nfs_mt_get_tid() : Get an identifier for the current thread. TODO ---- -* [rpc|nfs]_[set|get]_error() needs to be changed to use threads local storage -or a different API. * Optimization: have the service thread just read the PDU from the socket and add it to a new queue. Then have a pool of threads to read from this queue and unmarshall the pdu's in concurrently.