MCPcopy Create free account

hub / github.com/Pithikos/C-Thread-Pool / functions

Functions38 in github.com/Pithikos/C-Thread-Pool

↓ 12 callersFunctionthpool_add_work
Add work to the thread pool */
thpool.c:195
↓ 8 callersFunctionthpool_init
Initialise thread pool */
thpool.c:140
↓ 4 callersFunctionthpool_destroy
Destroy the threadpool */
thpool.c:226
↓ 4 callersFunctionthpool_wait
Wait until all jobs have finished */
thpool.c:216
↓ 3 callersFunctionthpool_num_threads_working
thpool.c:284
↓ 2 callersFunctionbsem_init
Init semaphore to 1 or 0 */
thpool.c:526
↓ 2 callersFunctionbsem_post
Post to at least one thread */
thpool.c:546
↓ 2 callersFunctionbsem_post_all
Post to all threads */
thpool.c:555
↓ 2 callersFunctionjobqueue_destroy
Free all queue resources back to the system */
thpool.c:513
↓ 2 callersFunctionjobqueue_pull
Get first job from queue(removes it from queue) * Notice: Caller MUST hold a mutex */
thpool.c:483
↓ 1 callersFunctionbsem_reset
Reset semaphore to 0 */
thpool.c:538
↓ 1 callersFunctionbsem_wait
Wait on semaphore until semaphore has value 0 */
thpool.c:564
↓ 1 callersFunctionjobqueue_clear
Clear the queue */
thpool.c:440
↓ 1 callersFunctionjobqueue_init
Initialize queue */
thpool.c:422
↓ 1 callersFunctionjobqueue_push
Add (allocated) job to queue */
thpool.c:456
↓ 1 callersFunctionnonzero_heap
tests/src/nonzero_heap_stack.c:22
↓ 1 callersFunctionnonzero_stack
tests/src/nonzero_heap_stack.c:16
↓ 1 callersFunctionthpool_pause
Pause all threads in threadpool */
thpool.c:265
↓ 1 callersFunctionthpool_resume
Resume all threads in threadpool */
thpool.c:274
↓ 1 callersFunctionthread_destroy
Frees a thread */
thpool.c:410
↓ 1 callersFunctionthread_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
Functionincrement
tests/src/conc_increment.c:12
Functionmain
example.c:24
Functionmain
tests/src/wait.c:24
Functionmain
tests/src/conc_increment.c:19
Functionmain
tests/src/api.c:14
Functionmain
tests/src/no_work.c:8
Functionmain
tests/src/pause_resume.c:23
Functionmain
tests/src/nonzero_heap_stack.c:38
Functionmain
tests/ext_bugs/memleak.c:19
Functionsleep_1
tests/src/wait.c:19
Functionsleep_2_secs
tests/src/api.c:8
Functionsleep_4_secs
tests/src/pause_resume.c:18
Functiontask
example.c:19
Functiontask
tests/src/nonzero_heap_stack.c:11
Functionthread_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
Functionthread_do
tests/ext_bugs/memleak.c:13
Functionthread_hold
Sets the calling thread on hold */
thpool.c:319