summaryrefslogtreecommitdiff
path: root/python/helpers/pydev/pydevd_additional_thread_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/helpers/pydev/pydevd_additional_thread_info.py')
-rw-r--r--python/helpers/pydev/pydevd_additional_thread_info.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/helpers/pydev/pydevd_additional_thread_info.py b/python/helpers/pydev/pydevd_additional_thread_info.py
index fa906adf385e..76fb49ed1986 100644
--- a/python/helpers/pydev/pydevd_additional_thread_info.py
+++ b/python/helpers/pydev/pydevd_additional_thread_info.py
@@ -1,9 +1,6 @@
import sys
from pydevd_constants import * #@UnusedWildImport
-if USE_LIB_COPY:
- import _pydev_threading as threading
-else:
- import threading
+from _pydev_imps import _pydev_thread
from pydevd_frame import PyDBFrame
import weakref
@@ -62,7 +59,7 @@ class PyDBAdditionalThreadInfoWithoutCurrentFramesSupport(AbstractPyDBAdditional
#Or if the user compiled threadframe (from http://www.majid.info/mylos/stories/2004/06/10/threadframe.html)
#NOT RLock!! (could deadlock if it was)
- self.lock = threading.Lock()
+ self.lock = _pydev_thread.allocate_lock()
self._acquire_lock = self.lock.acquire
self._release_lock = self.lock.release