GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MTBL_THREADPOOL(3)   MTBL_THREADPOOL(3)

mtbl_threadpool - create a shared worker threadpool

#include <mtbl.h>

struct mtbl_threadpool *
mtbl_threadpool_init(size_t thread_count);

void
mtbl_threadpool_destroy(struct mtbl_threadpool **pool);

Certain MTBL "option" structures accept an mtbl_threadpool option (e.g. mtbl_writer_options, mtbl_sorter_options) to enable internal concurrency. The user-provided mtbl_threadpool object must be initialized before use by calling mtbl_threadpool_init(), and must be destroyed after use by calling mtbl_threadpool_destroy().

If the thread_count parameter to mtbl_threadpool_init() is 0, multithreading will be disabled. Regardless, a non-NULL mtbl_threadpool object will be returned from mtbl_threadpool_init().

thread_count

The maximum number of worker threads that the threadpool will open.

mtbl_threadpool_init() returns NULL on failure, and non-NULL on success.

07/10/2024  

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.