Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

Thread API Summary

The FairCom DB Threading API is a thin layer over the native thread API and should be considered an advantage. Besides taking care of the FairCom DB internal necessities (initialization needs), this API is also extremely portable. The ctThrd API is available for all FairCom platforms by supporting either native OS threads or FairCom’s proprietary thread manager. In addition, inter-thread Communication has been incorporated which allows threads to communicate with each other through an efficient queue mechanism.

Important: When using a multi-threaded FairCom DB library, ctThrdInit() MUST be called before c‑tree is initialized for the first time and only threads created with ctThrdCreate(), or attached with ctThrdAttach(), can call FairCom DB functions. The rest of the ctThrd API is an optional cross-platform threading standard.