[CDRIVER-373] make various libmongoc structures ref counted Created: 05/Jun/14  Updated: 03/May/17  Resolved: 12/Sep/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Christian Hergert Assignee: Christian Hergert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

To make binding into various languages easier, we should make some of our structures ref counted.

Primarily, this should help manage lifetime of structures which is much more difficult in higher-level languages where we cannot control scope.

In particular, the following are probably strong candidates for reference counting.

mongoc_cilent_t
mongoc_collection_t
mongoc_cursor_t
mongoc_database_t
mongoc_gridfs_t
mongoc_bulk_operation_t
mongoc_stream_t

Possibly these as well:

mongoc_uri_t
mongoc_write_concern_t
mongoc_read_preferences_t


Generated at Wed Feb 07 21:09:17 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.