Context


Object Hierarchy:

Gee.HazardPointer.Context Gee.HazardPointer.Context Gee.HazardPointer.Context

Description:

[ Compact ]
public class Context

Create a new context. User does not need to create explicitly however it might be benefitial if he is about to issue bunch of commands he might consider it benefitial to fine-tune the creation of contexts.

  Context ctx = new Context ();
lock_free_collection.operation1 ();
// Normally on exit the thread exit operation would be executed but here the default operation of
// child context is executed.
lock_free_collection.operation2 ();

Please note that the Context in implicitly part of stack and:

1. It cannot be moved between threads. 2. If in given thread the child (created later) context is alive parent must be alive as well.

Content:

Creation methods:

Methods: