According to my understanding, it seems reasonable to start by getting a lock, and only afterwards try to get the module list.
But I don't know! I don't know this code well.
Looking at http://lxr.mozilla.org/seamonkey/ident?i=SECMOD_GetDefaultModuleList it appears that usually the module list is obtained first, and only afterwards the lock is obtained and locked.
I suspect that the lock is only required for modifying the contents of the lock?
According to my understanding, it seems reasonable to start by getting a lock, and only afterwards try to get the module list.
But I don't know! I don't know this code well.
Looking at http:// lxr.mozilla. org/seamonkey/ ident?i= SECMOD_ GetDefaultModul eList
it appears that usually the module list is obtained first, and only afterwards the lock is obtained and locked.
I suspect that the lock is only required for modifying the contents of the lock?