Skip to content

Commit 02055aa

Browse files
committed
Remove outdated comment
1 parent d7cf9de commit 02055aa

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

PythonScript/src/GILManager.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ namespace NppPythonScript
1818

1919
GILLock::~GILLock()
2020
{
21-
// Identify to the manager that we're giving it up.
22-
// This must be done first, as there could be someone waiting on an PyGILState_Ensure(), and as soon
23-
// as we do a PyGILState_Release(), the new thread will take the GIL and set the new thread ID in the manager.
24-
// There's a yummy race condition for ya, right there.
25-
// Doing this way round, any other thread that comes in between these two calls, gets "you don't have the GIL", which is correct.
26-
// The only thread that would get the wrong answer is *THIS* thread, which would (theoretically) get "you don't have the GIL", which is wrong until the
27-
// second call (PyGILState_Release) is called. However, *this* thread is here, so that ain't gonna happen.
2821
if (m_hasLock)
2922
{
3023
DEBUG_TRACE(L"Releasing GIL...\n");

0 commit comments

Comments
 (0)