Contents Index Developing multi-threaded applications Initializing the synchronization parameters pdf/preface.pdf

UltraLite User's Guide
  Developing UltraLite Applications

Adding synchronization to your application


Synchronization is a key feature of many UltraLite applications. This section describes how to add synchronization to your application.

Overview 

The specifics of each synchronization is controlled by a set of synchronization parameters. These parameters are gathered into a structure (C/C++) or object (Java), which is then supplied as an argument in a function call to synchronize. The outline of the method is the same in each development model.

To add synchronization to your application

  1. Initialize the structure (C/C++) or object (Java) that holds the synchronization parameters.

    For information, see Initializing the synchronization parameters.

  2. Assign the parameter values for your application.

    For information, see Synchronization stream parameters.

  3. Call the synchronization function, supplying the structure or object as argument.

    For information, see Invoking synchronization.

You must ensure that there are no uncommitted changes when you synchronize. For more information, see Commit all changes before synchronizing.

Synchronization parameters 

Synchronization specifics are controlled through a set of synchronization parameters. For information on these parameters, see Synchronization stream parameters.


Initializing the synchronization parameters
Setting synchronization parameters: C/C++ examples
Invoking synchronization
Commit all changes before synchronizing
Adding initial data to your application
Monitoring and canceling synchronization
Writing a synchronization callback function

Contents Index Developing multi-threaded applications Initializing the synchronization parameters pdf/preface.pdf