Ns_ConnRunRequest in op.c does something like:
Ns_MutexLock(&ulock);
reqPtr = Ns_UrlSpecificGet(server, method, url, id);
...
Ns_MutexUnlock(&ulock);
Ns_UrlSpecificGet in urlspace.c does something like:
MkSeq(&seq, server, method, url);
Ns_MutexLock(&lock);
data = JunctionFind(&urlspace, seq, i
I think ns_register_proc/ns_register_filter uses Trie and canbe called
at any time, that's why it still needs locking.
Double locking should be avoided but i would keep the ability to call
ns_registerXXX procs at any time.
Stephen Deasey wrote:
Ns_ConnRunRequest in op.c does something like: