RequestTimeout
Request timeout library for Excimer with plain PHP fallback
Loading...
Searching...
No Matches
Wikimedia\RequestTimeout\CriticalSectionScope Class Reference

Class for automatically ending a critical section when a variable goes out of scope. More...

Public Member Functions

 __construct ( $id, $exitCallback, $implicitExitCallback)
 
 __destruct ()
 If the section has not already been exited, exit it and call the destruct callback.
 
 exit ()
 Exit the critical section.
 
 getId ()
 Get an integer uniquely identifying the section (within the scope of the parent RequestTimeout object).
 

Detailed Description

Class for automatically ending a critical section when a variable goes out of scope.

Constructor & Destructor Documentation

◆ __destruct()

Wikimedia\RequestTimeout\CriticalSectionScope::__destruct ( )

If the section has not already been exited, exit it and call the destruct callback.

Exceptions
TimeoutException

Member Function Documentation

◆ exit()

Wikimedia\RequestTimeout\CriticalSectionScope::exit ( )

Exit the critical section.

Exceptions
TimeoutException

◆ getId()

Wikimedia\RequestTimeout\CriticalSectionScope::getId ( )

Get an integer uniquely identifying the section (within the scope of the parent RequestTimeout object).

Since
1.1.0
Returns
int

The documentation for this class was generated from the following file: