company logo

Other locking features

Besides locking database resources by means of file locks, an application might be locked. Sometimes, it becomes necessary to serialize specific tasks in a multi-thread application. This can be done by locking the application resource, which exists only once in a process.

... fragment ( ) {

  Application::lock();   // static function call

  // do what needs to be done

  Application::unlock();

}