Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Reclamation and compaction, incrementally

Both space reclamation and compaction can be done incrementally, i.e. broken down into smaller steps. This allows an application to alternate reclamation and compaction with other processing and remain responsive to other events.

To do this, construct an object of type RStoreReclaim and call:

Each stage of space reclamation and compaction is performed or initiated by calling the appropriate variant of RStoreReclaim::Next() or RStoreReclaim::NextL(). The class provides both synchronous and asynchronous variants of these two functions. The asynchronous versions initiate the next stage of space reclamation and compaction.

At any time during space reclamation or compaction, the RStoreReclaim::Available() returns a running total of free space discovered so far.

Compaction and normal access to the store interact in the following ways:

Once compaction is complete, the store must be committed.

Doing an incremental space reclamation or compaction asynchronously requires the use of active objects.


See also

Transactions

High level asynchronous service handling