Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
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
shrapnel
Commits
65577cc3
Commit
65577cc3
authored
Apr 05, 2012
by
Hasan Alayli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take nsecs into consideration for improved accuracy
parent
b0dcdbcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
coro/linux_poller.pyx
coro/linux_poller.pyx
+2
-1
No files found.
coro/linux_poller.pyx
View file @
65577cc3
...
...
@@ -75,6 +75,7 @@ cdef struct fake_epoll_event:
int
err
cdef
int
SECS_TO_MILLISECS
=
1000
cdef
double
NSECS_TO_MILLISECS
=
1000000.0
class
EV
:
...
...
@@ -442,7 +443,7 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
#print 'epoll_ctl event >>>>>> %s for %s' % (org_e.events, org_e.data.fd)
if
r
==
-
1
and
(
libc
.
errno
!=
libc
.
EEXIST
):
raise_oserror
()
r
=
epoll_wait
(
self
.
ep_fd
,
events
,
nevents
,
timeout
[
0
]
*
SECS_TO_MILLISECS
)
r
=
epoll_wait
(
self
.
ep_fd
,
events
,
nevents
,
timeout
[
0
]
*
SECS_TO_MILLISECS
+
(
timeout
[
1
]
/
NSECS_TO_MILLISECS
)
)
if
the_scheduler
.
profiling
:
the_profiler
.
charge_wait
()
...
...
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