Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
e882c749
Commit
e882c749
authored
Jan 31, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monkey.py: add comment about importing threading side-effect
parent
29d2ce56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gevent/monkey.py
gevent/monkey.py
+3
-0
No files found.
gevent/monkey.py
View file @
e882c749
...
@@ -135,6 +135,9 @@ def patch_thread(threading=True, _threading_local=True):
...
@@ -135,6 +135,9 @@ def patch_thread(threading=True, _threading_local=True):
if
threading
:
if
threading
:
from
gevent
import
thread
as
green_thread
from
gevent
import
thread
as
green_thread
threading
=
__import__
(
'threading'
)
threading
=
__import__
(
'threading'
)
# QQQ Note, that importing threading results in get_hub() call.
# QQQ Would prefer not to import threading at all if it's not used;
# QQQ that should be possible with import hooks
threading
.
local
=
local
threading
.
local
=
local
threading
.
_start_new_thread
=
green_thread
.
start_new_thread
threading
.
_start_new_thread
=
green_thread
.
start_new_thread
threading
.
_allocate_lock
=
green_thread
.
allocate_lock
threading
.
_allocate_lock
=
green_thread
.
allocate_lock
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment