Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Pithikos/C-Thread-Pool
/ functions
Functions
38 in github.com/Pithikos/C-Thread-Pool
⨍
Functions
38
◇
Types & classes
9
↓ 12 callers
Function
thpool_add_work
Add work to the thread pool */
thpool.c:195
↓ 8 callers
Function
thpool_init
Initialise thread pool */
thpool.c:140
↓ 4 callers
Function
thpool_destroy
Destroy the threadpool */
thpool.c:226
↓ 4 callers
Function
thpool_wait
Wait until all jobs have finished */
thpool.c:216
↓ 3 callers
Function
thpool_num_threads_working
thpool.c:284
↓ 2 callers
Function
bsem_init
Init semaphore to 1 or 0 */
thpool.c:526
↓ 2 callers
Function
bsem_post
Post to at least one thread */
thpool.c:546
↓ 2 callers
Function
bsem_post_all
Post to all threads */
thpool.c:555
↓ 2 callers
Function
jobqueue_destroy
Free all queue resources back to the system */
thpool.c:513
↓ 2 callers
Function
jobqueue_pull
Get first job from queue(removes it from queue) * Notice: Caller MUST hold a mutex */
thpool.c:483
↓ 1 callers
Function
bsem_reset
Reset semaphore to 0 */
thpool.c:538
↓ 1 callers
Function
bsem_wait
Wait on semaphore until semaphore has value 0 */
thpool.c:564
↓ 1 callers
Function
jobqueue_clear
Clear the queue */
thpool.c:440
↓ 1 callers
Function
jobqueue_init
Initialize queue */
thpool.c:422
↓ 1 callers
Function
jobqueue_push
Add (allocated) job to queue */
thpool.c:456
↓ 1 callers
Function
nonzero_heap
tests/src/nonzero_heap_stack.c:22
↓ 1 callers
Function
nonzero_stack
tests/src/nonzero_heap_stack.c:16
↓ 1 callers
Function
thpool_pause
Pause all threads in threadpool */
thpool.c:265
↓ 1 callers
Function
thpool_resume
Resume all threads in threadpool */
thpool.c:274
↓ 1 callers
Function
thread_destroy
Frees a thread */
thpool.c:410
↓ 1 callers
Function
thread_init
Initialize a thread in the thread pool * * @param thread address to the pointer of the thread to be created * @param id id to be
thpool.c:301
Function
increment
tests/src/conc_increment.c:12
Function
main
example.c:24
Function
main
tests/src/wait.c:24
Function
main
tests/src/conc_increment.c:19
Function
main
tests/src/api.c:14
Function
main
tests/src/no_work.c:8
Function
main
tests/src/pause_resume.c:23
Function
main
tests/src/nonzero_heap_stack.c:38
Function
main
tests/ext_bugs/memleak.c:19
Function
sleep_1
tests/src/wait.c:19
Function
sleep_2_secs
tests/src/api.c:8
Function
sleep_4_secs
tests/src/pause_resume.c:18
Function
task
example.c:19
Function
task
tests/src/nonzero_heap_stack.c:11
Function
thread_do
What each thread is doing * * In principle this is an endless loop. The only time this loop gets interrupted is once * thpool_destroy() is invoked or
thpool.c:336
Function
thread_do
tests/ext_bugs/memleak.c:13
Function
thread_hold
Sets the calling thread on hold */
thpool.c:319