Sections

Locked File

The QtLockedFile class extends QFile with advisory locking functions.

This class extends the QFile class with inter-process file locking capabilities. If an application requires that several processes should access the same file, QtLockedFile can be used to easily ensure that only one process at a time is writing to the file, and that no process is writing to it while others are reading it.

This Qt Solutions component is for Qt 3. For Qt 4 Solutions, please visit the Qt 4 Solutions Catalog.

Documentation:

Classes

Tested on:

  • Qt 3.3.6 / Windows XP / MSVC.NET 2003
  • Qt 3.3.6 / Linux / gcc
  • Qt 3.3.6 / SunOS 5.9 / SunC++
  • Qt 3.3.6 / MacOS X 10.4 / gcc

Unsupported platforms:

  • Qt 3.3.3 Windows 2000 / Borland C++ 5.6

Download Commercial Edition:

Only available for Qt Solutions license holder with a valid Support and Maintenance agreement (authentication required).
> <br>

Changes:

  • 1.3: Windows: Allow file names with paths.
  • 1.3: Windows: Possible deadlock removed.
  • 1.2: Fix non-blocking lock() on Windows.
  • 1.1: Fixed compile problem on Windows.
Document Actions