LLVM  8.0.1
Namespaces | Macros | Typedefs | Functions
Threading.h File Reference
#include "llvm/ADT/SmallVector.h"
#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
 This class represents lattice values for constants.
 

Macros

#define LLVM_THREADING_USE_STD_CALL_ONCE   1
 

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...
 
unsigned llvm::hardware_concurrency ()
 Get the number of threads that the current program can execute concurrently. More...
 
uint64_t llvm::get_threadid ()
 Return the current thread id, as used in various OS system calls. More...
 
uint32_t llvm::get_max_thread_name_length ()
 Get the maximum length of a thread name on this platform. More...
 
void llvm::set_thread_name (const Twine &Name)
 Set the name of the current thread. More...
 
void llvm::get_thread_name (SmallVectorImpl< char > &Name)
 Get the name of the current thread. More...
 

Macro Definition Documentation

◆ LLVM_THREADING_USE_STD_CALL_ONCE

#define LLVM_THREADING_USE_STD_CALL_ONCE   1

Definition at line 35 of file Threading.h.