Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython_lwan_coro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython_lwan_coro
Commits
cd02a76e
Commit
cd02a76e
authored
Aug 03, 2018
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set scheduler_coro_add() arg value to NULL by default
parent
ba1f9066
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrapper.pyx
wrapper.pyx
+2
-2
No files found.
wrapper.pyx
View file @
cd02a76e
...
...
@@ -109,7 +109,7 @@ cdef void scheduler_init(scheduler_t *scheduler, unsigned short num_workers=sysc
for i in range(scheduler.num_workers):
worker_init(&scheduler.workers[i], scheduler)
cdef void scheduler_coro_add(scheduler_t *scheduler, coro_function_t task, void *arg) nogil:
cdef void scheduler_coro_add(scheduler_t *scheduler, coro_function_t task, void *arg
=NULL
) nogil:
cdef worker_t *main_worker = scheduler.workers
main_worker.deque.push_back(coro_new(&main_worker.switcher, task, arg))
...
...
@@ -241,7 +241,7 @@ def main():
scheduler_init(&s)
for i in range(500):
scheduler_coro_add(&s, task
, NULL
)
scheduler_coro_add(&s, task)
scheduler_run(&s)
scheduler_destroy(&s)
...
...
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