|
LLVM 22.0.0git
|
A JobSlot represents a single job slot that can be acquired from or released to a jobserver pool. More...
#include "llvm/Support/Jobserver.h"
Public Member Functions | |
| JobSlot ()=default | |
| Default constructor creates an invalid instance. | |
| JobSlot (JobSlot &&Other) noexcept | |
| JobSlot & | operator= (JobSlot &&Other) noexcept |
| JobSlot (const JobSlot &)=delete | |
| JobSlot & | operator= (const JobSlot &)=delete |
| bool | isValid () const |
| Returns true if this instance is valid (either implicit or explicit). | |
| bool | isImplicit () const |
| Returns true if this instance represents the implicit job slot. | |
| uint8_t | getExplicitValue () const |
| bool | isExplicit () const |
Static Public Member Functions | |
| static JobSlot | createExplicit (uint8_t V) |
| static JobSlot | createImplicit () |
Friends | |
| class | JobserverClient |
| class | JobserverClientImpl |
A JobSlot represents a single job slot that can be acquired from or released to a jobserver pool.
This class is move-only.
Definition at line 75 of file Jobserver.h.
|
default |
Default constructor creates an invalid instance.
Referenced by createExplicit(), createImplicit(), JobSlot(), JobSlot(), operator=(), and operator=().
|
inlinenoexcept |
Definition at line 81 of file Jobserver.h.
References JobSlot(), and llvm::Other.
Definition at line 102 of file Jobserver.h.
References JobSlot().
|
inlinestatic |
Definition at line 106 of file Jobserver.h.
References JobSlot().
| uint8_t llvm::JobSlot::getExplicitValue | ( | ) | const |
Definition at line 189 of file Jobserver.cpp.
References assert(), and isExplicit().
|
inline |
Definition at line 109 of file Jobserver.h.
References isImplicit(), and isValid().
Referenced by getExplicitValue().
|
inline |
Returns true if this instance represents the implicit job slot.
Definition at line 100 of file Jobserver.h.
Referenced by isExplicit().
|
inline |
Returns true if this instance is valid (either implicit or explicit).
Definition at line 97 of file Jobserver.h.
Referenced by isExplicit().
Definition at line 84 of file Jobserver.h.
References JobSlot(), and llvm::Other.
|
friend |
Definition at line 112 of file Jobserver.h.
References JobserverClient.
Referenced by JobserverClient.
|
friend |
Definition at line 113 of file Jobserver.h.
References JobserverClientImpl.
Referenced by JobserverClientImpl.