Changes between Version 2 and Version 3 of rfc16_ogr_reentrancy


Ignore:
Timestamp:
Sep 4, 2007, 8:51:55 AM (17 years ago)
Author:
warmerdam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc16_ogr_reentrancy

    v2 v3  
    1616'''Thread-safe''': A thread-safe function can be called simultaneously by multiple threads when each invocation references shared data. All access to the shared data is serialized.
    1717
     18== Objective ==
     19
     20To make all of the OGR core and selected drivers reentrant, and to make the driver registrar, drivers and datasources at least potentially thread-safe. 
     21
     22== !TestCapability() ==
     23
     24The !TestCapability() method on the driver, and datasource will be extended to include ways of testing for reentrancy and thread safety on particular instances.   The following macros will be added:
     25
     26{{{
     27#define OLCReentrant "Reentrant"
     28#define ODsReentrant "Reentrant"
     29#define ODsThreadSafe "Threadsafe"
     30}}}
     31
     32Note that layers cannot be threadsafe as long as layer feature reading status is implicit in the layer object.  The default return value for all test values is FALSE, as is normal for the !TestCapability() method, but specific drivers can return TRUE after determining that the driver datasources or layers are in fact reentrant and/or threadsafe.