|
Sunshine master
Self-hosted game stream host for Moonlight.
|
Keyed-mutex guard used while sharing a D3D texture. More...
Public Member Functions | |
| bool | lock () |
| Acquire the underlying lock or keyed mutex. | |
| texture_lock_helper & | operator= (const texture_lock_helper &)=delete |
| texture_lock_helper & | operator= (texture_lock_helper &&other) |
| Assign state from another instance while preserving ownership semantics. | |
| texture_lock_helper (const texture_lock_helper &)=delete | |
| texture_lock_helper (IDXGIKeyedMutex *mutex) | |
| Acquire a D3D keyed mutex for scoped texture access. | |
| texture_lock_helper (texture_lock_helper &&other) | |
| Move a keyed-mutex lock helper while preserving lock ownership. | |
Public Attributes | |
| bool | _locked = false |
| Whether the keyed mutex is currently locked. | |
| keyed_mutex_t | _mutex |
| D3D keyed mutex acquired for shared-texture access. | |
Keyed-mutex guard used while sharing a D3D texture.
|
inline |
Move a keyed-mutex lock helper while preserving lock ownership.
| other | Helper whose acquired keyed mutex is transferred. |
|
inline |
Acquire a D3D keyed mutex for scoped texture access.
| mutex | Keyed mutex to acquire for texture access. |
|
inline |
Acquire the underlying lock or keyed mutex.
|
inline |
Assign state from another instance while preserving ownership semantics.
| other | Source object whose state is copied or moved into this object. |