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
8584918e
Commit
8584918e
authored
Sep 16, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread: make allocate_lock alias for LockType/Semaphore
that way it does not fail when being used as class member
parent
1663c356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gevent/thread.py
gevent/thread.py
+2
-2
No files found.
gevent/thread.py
View file @
8584918e
...
@@ -41,8 +41,7 @@ def start_new_thread(function, args=(), kwargs={}):
...
@@ -41,8 +41,7 @@ def start_new_thread(function, args=(), kwargs={}):
return
get_ident
(
greenlet
)
return
get_ident
(
greenlet
)
def
allocate_lock
():
allocate_lock
=
LockType
return
LockType
(
1
)
def
exit
():
def
exit
():
...
@@ -68,3 +67,4 @@ __all__ = __implements__ + __imports__
...
@@ -68,3 +67,4 @@ __all__ = __implements__ + __imports__
__all__
.
remove
(
'_local'
)
__all__
.
remove
(
'_local'
)
# XXX interrupt_main
# XXX interrupt_main
# XXX _count()
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