| 5969 | return !fServerThread && aeThreadOwnsLock() && !g_fModuleThread && s_moduleGIL.hasReader(); |
| 5970 | } |
| 5971 | void moduleAcquireGIL(int fServerThread, int fExclusive) { |
| 5972 | if (FModuleCallBackLock(fServerThread)) { |
| 5973 | return; |
| 5974 | } |
| 5975 | |
| 5976 | if (fServerThread) |
| 5977 | { |
| 5978 | s_moduleGIL.acquireRead(); |
| 5979 | } |
| 5980 | else |
| 5981 | { |
| 5982 | s_moduleGIL.acquireWrite(fExclusive); |
| 5983 | } |
| 5984 | } |
| 5985 | |
| 5986 | int moduleTryAcquireGIL(bool fServerThread, int fExclusive) { |
| 5987 | if (FModuleCallBackLock(fServerThread)) { |
no test coverage detected