Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython_lwan_coro
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
Boxiang Sun
cython_lwan_coro
Commits
ba1f9066
Commit
ba1f9066
authored
Aug 03, 2018
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove clock related code
parent
e373ac74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
wrapper.pyx
wrapper.pyx
+0
-8
No files found.
wrapper.pyx
View file @
ba1f9066
...
...
@@ -9,8 +9,6 @@ cdef extern from "<unistd.h>" nogil:
from
libcpp.deque
cimport
deque
ctypedef
deque
[
coro_t
*
]
coro_deque_t
from
libc.time
cimport
CLOCKS_PER_SEC
,
clock_t
,
clock
cdef
extern
from
"lwan/lwan-coro.h"
nogil
:
ctypedef
struct
coro_switcher_t
:
pass
...
...
@@ -237,12 +235,9 @@ cdef void worker_destroy(worker_t *worker) nogil:
def
main
():
cdef
:
scheduler_t
s
clock_t
begin
,
end
unsigned
int
i
with
nogil
:
begin
=
clock
()
scheduler_init
(
&
s
)
for
i
in
range
(
500
):
...
...
@@ -251,9 +246,6 @@ def main():
scheduler_run
(
&
s
)
scheduler_destroy
(
&
s
)
end
=
clock
()
printf
(
"%f
\
n
"
,
<
double
>
(
end
-
begin
)
/
CLOCKS_PER_SEC
)
# Example task
cdef
int
task
(
coro_t
*
coroutine
,
void
*
arg
)
nogil
:
cdef
int
a
=
5
...
...
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