mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Fix build error when some atomics are not lock-free
Normally, we want to avoid accidentally using such atomics, since they're much slower. In this case however, we're just implementing another atomics API, it is then up to the JavaScript code to avoid using the slow atomics.
This commit is contained in:
parent
81794df280
commit
9c6c2284d9
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,14 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
// This file explicitly implements support for JS Atomics API, which can
|
||||
// involve slow (non-lock-free) atomic ops.
|
||||
#include <AK/Platform.h>
|
||||
|
||||
#ifdef AK_COMPILER_CLANG
|
||||
# pragma clang diagnostic ignored "-Watomic-alignment"
|
||||
#endif
|
||||
|
||||
#include <AK/Atomic.h>
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Endian.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue