Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a C Thread pool, manage thread through name str.

Work as Middleware lib, export simple interfate to application layer.

Please refer to the specific case examples in the test

Usage:

1.init pool, param is max threads num, call once!

threadcommander_init(int threadMaxNum)

2.create thread

threadcommander_create(char * pThreadName, void (*start_rtn)(void *), void *arg, int isRun, int bEnableCtrl)

3.ctrl thread , work when bEnableCtrl == 1 and start_rtn proc call threadcommander_waitctrl regularly

int threadcommander_ctrl(char * pThreadName, int isRun)

4.kill thread

int threadcommander_kill(char * pThreadName)

About

Linux C Thread pool ; create、kill、puase、restart thread through thread name string

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages