diff options
author | Chris Robinson <[email protected]> | 2020-04-24 07:04:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-24 07:04:32 -0700 |
commit | be476c793574fcde7bb78df1595257cc52f4c93a (patch) | |
tree | 0bb49372446b21c8f159e73c4ad3223f383cff58 /al/event.cpp | |
parent | f49238c79278bb019e618b23d9b86d2ba15f82c2 (diff) |
Use global placement new for AsyncEvent
Diffstat (limited to 'al/event.cpp')
-rw-r--r-- | al/event.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/event.cpp b/al/event.cpp index 0da48cbf..cd8ea7c2 100644 --- a/al/event.cpp +++ b/al/event.cpp @@ -122,7 +122,7 @@ void StopEventThrd(ALCcontext *ctx) evt_data = ring->getWriteVector().first; } while(evt_data.len == 0); } - new (evt_data.buf) AsyncEvent{EventType_KillThread}; + ::new(evt_data.buf) AsyncEvent{EventType_KillThread}; ring->writeAdvance(1); ctx->mEventSem.post(); |