All Classes Functions Variables Typedefs Friends Pages
Static Public Member Functions | Static Public Attributes | List of all members
Glympse::Concurrent Class Reference

The Concurrent class provides set of basic concurrency primitives. More...

#include <Concurrent.h>

Static Public Member Functions

static int32 increment (int32 *ptr)
 Increments (increases by one) the value of the specified variable as an atomic operation. More...
 
static int32 decrement (int32 *ptr)
 Decrements (decreases by one) the value of the specified variable as an atomic operation. More...
 
static int64 getTime ()
 Returns local system UTC time in milliseconds.
 
static int32 getBackgroundMode ()
 Returns background mode supported by the platform.
 
static void sleep (int64 delay)
 Sends current thread to sleep for the specified amount of time in milliseconds.
 

Static Public Attributes

static const int32 BACKGROUND_NONE = 0x0
 Background operation is not supported by the platform. More...
 
static const int32 BACKGROUND_EVENTS = 0x1
 Background operation is partially supported by the platform. More...
 
static const int32 BACKGROUND_FULL = 0x2
 Background operation is supported by the platform without any limitations. More...
 

Detailed Description

The Concurrent class provides set of basic concurrency primitives.

Member Function Documentation

static int32 Glympse::Concurrent::decrement ( int32 *  ptr)
static

Decrements (decreases by one) the value of the specified variable as an atomic operation.

The function returns the resulting decremented value.

Here is the caller graph for this function:

static int32 Glympse::Concurrent::increment ( int32 *  ptr)
static

Increments (increases by one) the value of the specified variable as an atomic operation.

The function returns the resulting incremented value.

Here is the caller graph for this function:

Member Data Documentation

const int32 Glympse::Concurrent::BACKGROUND_EVENTS = 0x1
static

Background operation is partially supported by the platform.

Application is only notified on specific events (location updates). Platforms: iOS (4.0 and above).

const int32 Glympse::Concurrent::BACKGROUND_FULL = 0x2
static

Background operation is supported by the platform without any limitations.

Application main event loop functions as usual. Platforms: Android, BlackBerry, Windows Phone 8.0 and above.

const int32 Glympse::Concurrent::BACKGROUND_NONE = 0x0
static

Background operation is not supported by the platform.

Application is completely terminated, once it goes to the background. Platforms: iOS (prior to 4.0), Windows Phone 7.x.


The documentation for this class was generated from the following file: