Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-373

make various libmongoc structures ref counted

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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

            Assignee:
            christian.hergert@10gen.com Christian Hergert
            Reporter:
            christian.hergert@10gen.com Christian Hergert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: