Skip to content

Commit 5d2537d

Browse files
committed
minor correction in some pytaskr examples
1 parent b51bd59 commit 5d2537d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/simple/python/simple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def simple(runtime):
2929
for i in range(NTASKS):
3030
runtime.addTask(taskr.Task(i, taskfc))
3131

32-
# Running taskr for the current repetition
32+
# Running the tasks
3333
runtime.run()
3434

35-
# Waiting current repetition to end
35+
# Waiting until all tasks finished
3636
runtime.wait()
3737

3838
# Finalizing taskr

include/pytaskr/pytaskr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ PYBIND11_MODULE(taskr, m)
5555

5656
// TaskR's Task class
5757
py::class_<Task>(m, "Task")
58-
.def(py::init<Function *, const workerId_t>(), py::arg("fc"), py::arg("workerAffinity") = -1)
58+
.def(py::init<Function *, const workerId_t>(), py::arg("taskfc"), py::arg("workerAffinity") = -1)
5959
.def(py::init<const taskId_t, Function *, const workerId_t>(), py::arg("taskId"), py::arg("taskfc"), py::arg("workerAffinity") = -1)
6060
.def("getTaskId", &Task::getTaskId)
6161
.def("setTaskId", &Task::setTaskId)

0 commit comments

Comments
 (0)