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
bbf888da
Commit
bbf888da
authored
Jan 30, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace _default_loop_is_good with _default_loop_destroyed
parent
0aadc935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gevent/core.ppyx
gevent/core.ppyx
+4
-4
No files found.
gevent/core.ppyx
View file @
bbf888da
...
...
@@ -215,7 +215,7 @@ def time():
return self._ptr.NAME
cdef bint _default_loop_
is_good = Tru
e
cdef bint _default_loop_
destroyed = Fals
e
cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
...
...
@@ -237,7 +237,7 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
else:
c_flags = _flags_to_int(flags)
_check_flags(c_flags)
if
not _default_loop_is_goo
d:
if
_default_loop_destroye
d:
default = False
if default:
self._ptr = libev.ev_default_loop(c_flags)
...
...
@@ -267,13 +267,13 @@ cdef public class loop [object PyGeventLoopObject, type PyGeventLoop_Type]:
#endif
def destroy(self):
global _default_loop_
is_goo
d
global _default_loop_
destroye
d
if self._ptr:
self._stop_signal_checker()
if __SYSERR_CALLBACK == self._handle_syserr:
set_syserr_cb(None)
if libev.ev_is_default_loop(self._ptr):
_default_loop_
is_good = Fals
e
_default_loop_
destroyed = Tru
e
libev.ev_loop_destroy(self._ptr)
self._ptr = NULL
...
...
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