dds-bridge-sys

Crates.iodds-bridge-sys
lib.rsdds-bridge-sys
version2.0.2
sourcesrc
created_at2024-05-24 19:49:47.322157
updated_at2024-08-09 22:34:48.480431
descriptionGenerated bindings to DDS, the double dummy solver for bridge
homepage
repositoryhttps://github.com/jdh8/dds-bridge-sys
max_upload_size
id1251493
size729,302
Chen-Pang He (jdh8)

documentation

README

dds-bridge-sys

Build Status Crates.io Docs.rs

Generated bindings to dds-bridge/dds, the C++ double dummy solver for contract bridge.

Usage

This library needs manual initialization! Initialize the thread pool with SetMaxThreads before calling other library functions:

use dds_bridge_sys as dds;
// 0 stands for automatic configuration
unsafe { dds::SetMaxThreads(0) };

Also note that functions using the thread pool are not reentrant. You may want to use a mutex to ensure that only one thread is using the thread pool.

Commit count: 49

cargo fmt