Skip to content

Commit

Permalink
fix bug on testing of PriorityScheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
maltezfaria committed Jun 21, 2022
1 parent f55697b commit 52ceae7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/otherschedulers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ function execute(t::DataFlowTask,i)
task.sticky = VERSION >= v"1.7"
ccall(:jl_set_task_tid, Cvoid, (Any, Cint), task, i-1)
# ccall(:jl_set_next_task, Cvoid, (Any,), task)
yield(task)
# schedule(task)
# wait(task)
# yield(task)
schedule(task)
wait(task)
# task = t.task
# task.result = Base.invokelatest(task.code)
# task._state = 1
Expand Down
3 changes: 1 addition & 2 deletions test/priorityscheduler_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ using DataFlowTasks: R,W,RW
using LinearAlgebra
using DataFlowTasks.TiledFactorization


background = true
background = false
sch = DataFlowTasks.PriorityScheduler(100,background)
DataFlowTasks.setscheduler!(sch)

Expand Down

0 comments on commit 52ceae7

Please sign in to comment.