Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lwhyz/workspace
/ functions
Functions
101 in github.com/Lwhyz/workspace
⨍
Functions
101
◇
Types & classes
28
↓ 19 callers
Method
submit
include/workspace/workspace.hpp:225
↓ 18 callers
Method
wait_tasks
* @brief Wait for all tasks done. * @brief This interface will pause all threads(workers) in workbranch to * relieve system's stress. *
include/workspace/workbranch.hpp:99
↓ 17 callers
Method
attach
* @brief attach a workbranch * @param br ptr (heap memory) * @return id * @note O(1) */
include/workspace/workspace.hpp:109
↓ 13 callers
Method
get
* @brief get set of result * @return std::vector<T> */
include/workspace/utility.hpp:224
↓ 10 callers
Method
for_each
include/workspace/utility.hpp:248
↓ 9 callers
Method
num_tasks
* @brief get number of tasks in the task queue * @return number */
include/workspace/workbranch.hpp:132
↓ 9 callers
Method
size
include/workspace/utility.hpp:217
↓ 9 callers
Method
supervise
* @brief start supervising a workbranch * @param wbr reference of workbranch */
include/workspace/supervisor.hpp:66
↓ 9 callers
Method
what
test/test_exception.cc:13
↓ 8 callers
Function
bench
bench/bench1.cc:8
↓ 8 callers
Function
bench
bench/bench2.cc:8
↓ 6 callers
Function
bench
bench/bench3.cc:8
↓ 5 callers
Method
num_workers
* @brief get number of workers * @return number */
include/workspace/workbranch.hpp:124
↓ 5 callers
Method
wait
wait for all futures
include/workspace/utility.hpp:212
↓ 4 callers
Function
seperate
test/test_function.cc:58
↓ 4 callers
Function
timewait
benchmark/timewait.h:10
↓ 3 callers
Method
begin
include/workspace/utility.hpp:236
↓ 3 callers
Method
del_worker
* @brief delete one worker * @note O(1) */
include/workspace/workbranch.hpp:82
↓ 3 callers
Method
end
include/workspace/utility.hpp:232
↓ 3 callers
Method
push_back
include/workspace/taskqueue.hpp:26
↓ 2 callers
Method
add_back
include/workspace/utility.hpp:240
↓ 2 callers
Method
add_worker
* @brief add one worker * @note O(logN) */
include/workspace/workbranch.hpp:72
↓ 2 callers
Method
clone_into
include/workspace/utility.hpp:77
↓ 2 callers
Method
detach
* @brief detach workbranch by id * @param id branch's id * @return std::unique_ptr<workbranch> * @note O(n) */
include/workspace/workspace.hpp:133
↓ 2 callers
Method
get_id
include/workspace/autothread.hpp:29
↓ 2 callers
Method
move_into
include/workspace/utility.hpp:74
↓ 2 callers
Method
push_front
include/workspace/taskqueue.hpp:34
↓ 2 callers
Function
repeat
test/test_supervisor.cc:4
↓ 2 callers
Method
set_tick_cb
* @brief Always execute callback before taking a rest * @param cb callback function */
include/workspace/supervisor.hpp:91
↓ 1 callers
Method
get_ref
* @brief get reference of workbranch * @param id workbranch's id * @return reference * @note O(1) */
include/workspace/workspace.hpp:205
↓ 1 callers
Method
invoke
include/workspace/utility.hpp:71
↓ 1 callers
Method
length
include/workspace/taskqueue.hpp:51
↓ 1 callers
Method
proceed
go on supervising
include/workspace/supervisor.hpp:80
↓ 1 callers
Method
reset
include/workspace/utility.hpp:174
↓ 1 callers
Method
rexec
include/workspace/workbranch.hpp:324
↓ 1 callers
Method
suspend
* @brief suspend the supervisor * @param timeout the longest waiting time */
include/workspace/supervisor.hpp:75
↓ 1 callers
Method
try_pop
include/workspace/taskqueue.hpp:42
↓ 1 callers
Method
~callable_base
include/workspace/utility.hpp:61
Method
BigTask
test/test_function.cc:30
Method
SmallTask
test/test_function.cc:9
Method
add_front
include/workspace/utility.hpp:244
Method
autothread
include/workspace/autothread.hpp:19
Method
autothread
include/workspace/autothread.hpp:39
Method
bid
include/workspace/workspace.hpp:43
Method
callable_impl
include/workspace/utility.hpp:69
Method
clone_into
include/workspace/utility.hpp:106
Method
excep
test/test_exception.cc:8
Method
for_each
* @brief travel all the workbranchs and deal each of them * @param deal <void(workbranch&)> how to deal with the work branch */
include/workspace/workspace.hpp:165
Method
function_
include/workspace/utility.hpp:114
Method
get_id
include/workspace/autothread.hpp:49
Method
heap_callable_impl
include/workspace/utility.hpp:86
Method
invoke
include/workspace/utility.hpp:98
Function
main
example/e6.cc:3
Function
main
example/e5.cc:3
Function
main
example/e2.cc:3
Function
main
example/e4.cc:3
Function
main
example/e1.cc:3
Function
main
example/e3.cc:3
Function
main
benchmark/bench1.cc:8
Function
main
benchmark/bench2.cc:5
Function
main
benchmark/bench4.cc:5
Function
main
benchmark/bench3.cc:5
Function
main
test/test_workbranch.cc:3
Function
main
test/test_workspace.cc:5
Function
main
test/test_supervisor.cc:10
Function
main
test/test_function.cc:62
Function
main
test/test_exception.cc:18
Function
main
bench/bench1.cc:20
Function
main
bench/bench2.cc:23
Function
main
bench/bench3.cc:23
Method
mission
thread's default loop
include/workspace/workbranch.hpp:270
Method
mission
loop func
include/workspace/supervisor.hpp:97
Method
move_into
include/workspace/utility.hpp:101
Method
operator!=
include/workspace/workspace.hpp:50
Method
operator!=
include/workspace/workspace.hpp:73
Method
operator()
test/test_function.cc:21
Method
operator()
test/test_function.cc:42
Method
operator()
include/workspace/utility.hpp:185
Method
operator<
include/workspace/workspace.hpp:53
Method
operator<
include/workspace/workspace.hpp:76
Method
operator==
include/workspace/workspace.hpp:47
Method
operator==
include/workspace/workspace.hpp:70
Method
operator[]
include/workspace/utility.hpp:263
Method
operator[]
* @brief get ref of workbranch by id * @param id workbranch's id * @return reference of the workbranch * @note O(1) */
include/workspace/workspace.hpp:186
Function
safe_exec
test/test_function.cc:50
Method
sid
include/workspace/workspace.hpp:66
Method
submit
include/workspace/workbranch.hpp:144
Method
supervisor
* @brief construct a supervisor * @param min_wokrs min nums of workers * @param max_wokrs max nums of workers * @param time_interval t
include/workspace/supervisor.hpp:42
Method
taskqueue
include/workspace/taskqueue.hpp:21
Method
workbranch
* @brief construct function * @param wks initial number of workers * @param strategy wait_strategy for workers (defaults to lowlatancy).
include/workspace/workbranch.hpp:51
Method
workspace
include/workspace/workspace.hpp:95
Method
~BigTask
test/test_function.cc:39
Method
~SmallTask
test/test_function.cc:18
Method
~autothread
include/workspace/autothread.hpp:24
Method
~autothread
include/workspace/autothread.hpp:44
Method
~excep
test/test_exception.cc:11
Method
~function_
include/workspace/utility.hpp:170
Method
~heap_callable_impl
include/workspace/utility.hpp:96
Method
~supervisor
include/workspace/supervisor.hpp:53
Method
~workbranch
include/workspace/workbranch.hpp:59
next →
1–100 of 101, ranked by callers