Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
b580f89b
Commit
b580f89b
authored
Oct 30, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d3f8b74c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+5
-4
No files found.
neo/tests/threaded/__init__.py
View file @
b580f89b
...
@@ -164,7 +164,7 @@ class Serialized(object):
...
@@ -164,7 +164,7 @@ class Serialized(object):
@
classmethod
@
classmethod
def
_sort_key
(
cls
,
fd_event
):
def
_sort_key
(
cls
,
fd_event
):
return
-
cls
.
_fd_dict
[
fd_event
[
0
]].
_last
return
-
cls
.
_fd_dict
[
fd_event
[
0
]].
_last
# NOTE ._last set to time.time()
@
classmethod
@
classmethod
@
contextmanager
@
contextmanager
...
@@ -198,11 +198,11 @@ class Serialized(object):
...
@@ -198,11 +198,11 @@ class Serialized(object):
with
cls
.
_busy_cond
:
with
cls
.
_busy_cond
:
while
cls
.
_busy
:
while
cls
.
_busy
:
cls
.
_busy_cond
.
wait
()
cls
.
_busy_cond
.
wait
()
for
app
in
check_timeout
:
for
app
in
check_timeout
:
# XXX hack (?), used only in 1 place
app
.
em
.
epoll
.
check_timeout
=
True
app
.
em
.
epoll
.
check_timeout
=
True
app
.
em
.
wakeup
()
app
.
em
.
wakeup
()
del
app
del
app
while
step
:
while
step
:
# used as step=-1 (default), =1 (twice), =2 (once)
event_list
=
cls
.
_epoll
.
poll
(
0
)
event_list
=
cls
.
_epoll
.
poll
(
0
)
if
not
event_list
:
if
not
event_list
:
break
break
...
@@ -212,7 +212,8 @@ class Serialized(object):
...
@@ -212,7 +212,8 @@ class Serialized(object):
for
fd
,
event
in
event_list
:
for
fd
,
event
in
event_list
:
self
=
cls
.
_fd_dict
[
fd
]
self
=
cls
.
_fd_dict
[
fd
]
self
.
_release_next
=
next_lock
.
release
self
.
_release_next
=
next_lock
.
release
next_lock
=
self
.
_lock
next_lock
=
self
.
_lock
# XXX what is self._lock
# XXX ? set in .release_next() ?
del
self
del
self
next_lock
.
release
()
next_lock
.
release
()
cls
.
_sched_lock
.
acquire
()
cls
.
_sched_lock
.
acquire
()
...
...
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