LLVM  4.0.0
Namespaces | Macros | Typedefs | Functions
Threading.h File Reference
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Compiler.h"
#include <ciso646>
#include <functional>
#include <mutex>
Include dependency graph for Threading.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

#define LLVM_THREADING_USE_STD_CALL_ONCE   1
 
#define LLVM_DEFINE_ONCE_FLAG(flag)   static once_flag flag
 This macro is the only way you should define your once flag for LLVM's call_once. More...
 

Typedefs

typedef std::once_flag llvm::once_flag
 

Functions

bool llvm::llvm_is_multithreaded ()
 Returns true if LLVM is compiled with support for multi-threading, and false otherwise. More...
 
void llvm::llvm_execute_on_thread (void(*UserFn)(void *), void *UserData, unsigned RequestedStackSize=0)
 llvm_execute_on_thread - Execute the given UserFn on a separate thread, passing it the provided UserData and waits for thread completion. More...
 
template<typename Function , typename... Args>
void llvm::call_once (once_flag &flag, Function &&F, Args &&...ArgList)
 Execute the function specified as a parameter once. More...
 
unsigned llvm::heavyweight_hardware_concurrency ()
 Get the amount of currency to use for tasks requiring significant memory or other resources. More...
 

Macro Definition Documentation

#define LLVM_DEFINE_ONCE_FLAG (   flag)    static once_flag flag

This macro is the only way you should define your once flag for LLVM's call_once.

Definition at line 65 of file Threading.h.

#define LLVM_THREADING_USE_STD_CALL_ONCE   1

Definition at line 28 of file Threading.h.