LLVM OpenMP* Runtime Library
Public Member Functions | Private Attributes | List of all members
kmp_flag< P > Class Template Reference

#include <kmp_wait_release.h>

Public Member Functions

volatile P * get ()
 
void set (volatile P *new_loc)
 
flag_type get_type ()
 

Private Attributes

volatile P * loc
 
flag_type t
 

Detailed Description

template<typename P>
class kmp_flag< P >

Base class for wait/release volatile flag

Definition at line 48 of file kmp_wait_release.h.

Member Function Documentation

template<typename P>
volatile P* kmp_flag< P >::get ( )
inline
Returns
the pointer to the actual flag

Definition at line 57 of file kmp_wait_release.h.

template<typename P>
flag_type kmp_flag< P >::get_type ( )
inline
Returns
the flag_type

Definition at line 65 of file kmp_wait_release.h.

template<typename P>
void kmp_flag< P >::set ( volatile P *  new_loc)
inline
Parameters
new_locin set loc to point at new_loc

Definition at line 61 of file kmp_wait_release.h.

Member Data Documentation

template<typename P>
volatile P* kmp_flag< P >::loc
private

Pointer to the flag storage that is modified by another thread

Definition at line 49 of file kmp_wait_release.h.

Referenced by kmp_flag< kmp_uint32 >::get(), and kmp_flag< kmp_uint32 >::get_type().

template<typename P>
flag_type kmp_flag< P >::t
private

"Type" of the flag in loc

Definition at line 50 of file kmp_wait_release.h.

Referenced by kmp_flag< kmp_uint32 >::get_type().


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