📄 thr_drv.txt
字号:
Thread-safeness of drivers==========================This is a listing of driver code modules, showing which are essentiallythread-safe. My criterion is really whether the basic driver I/Ofunctions can be called simultaneously from multiple threads, but ondifferent channels or conns. There's no requirement to handlemulti-threaded access to a single channel or conn tidily -- it's auser error if that occurs.Driver initialisation, shutdown, config file reading, and channel andconn creation will always occur in a single-threaded manner.The main thing to watch out for is static variables (in or out offunctions) -- they tend to indicate unsafeness. The bit which is unsafeis *modifying* these variables -- reading is OK. So the driverdisabling system is fine, because that's only written to during configfile reading, which is a single-threaded part of the library.It's also possible that the low-level OS routines we eventually call arenot thread-safe.local: safenonet: safetemplate: safesocks: safewsockwin: safewsockdosserialserbeosserdosserlinuxipx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -