Skip to content

This is a simple http server based thread pool, and written in C language under the Linux or Unix-like System.

Notifications You must be signed in to change notification settings

yzfedora/httpserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpserver

The thread-pool implementation under the Linux or Unix-like system.

how to use the thread pool api?

- just inclide thread_pool.[ch] files to your source tree.
- there is a global allowed maximum threads to running in the header.
	#define MAXT_IN_POOL	200
- functions
	struct thread_pool *thread_pool_new(int num_threads_in_pool);
	void dispatch(struct thread_pool * from_me, job_routine job_routine, void *arg);
	void thread_pool_delete(struct thread_pool * pool);

- and there is a simple http server code in the source tree. also, it
  explains how to use this thread pool APIs.

About

This is a simple http server based thread pool, and written in C language under the Linux or Unix-like System.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published