qt_team_critical_section - Man Page

marks a region of code that must not be interrupted by a eureka

Synopsis

#include <qthread.h>

void
qt_team_critical_section (qt_team_critical_section_t boundary);

Description

This function is used to mark a region of code that must not be interrupted by a eureka. This is primarily to allow small operations that do not work well when interrupted (such as printf()) to be performed in eureka-able code, and to allow for correct manipulation of shared data structures that require locking. If a eureka moment is reached by another thread while the current thread is within a critical section, the effect will be as if the current thread was able to complete its critical section just before the eureka moment was reached.

The argument, boundary, may be one of two values: BEGIN and END, indicating whether this is the beginning of a critical section or the end of one. Critical sections CAN be nested, if necessary.

See Also

qt_team_eureka(3)

Referenced By

qt_team_eureka(3).

NOVEMBER 2012 libqthread