mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
40
Libraries/LibJS/Runtime/AtomicsObject.h
Normal file
40
Libraries/LibJS/Runtime/AtomicsObject.h
Normal file
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
||||
namespace JS {
|
||||
|
||||
class AtomicsObject : public Object {
|
||||
JS_OBJECT(AtomicsObject, Object);
|
||||
JS_DECLARE_ALLOCATOR(AtomicsObject);
|
||||
|
||||
public:
|
||||
virtual void initialize(Realm&) override;
|
||||
virtual ~AtomicsObject() override = default;
|
||||
|
||||
private:
|
||||
explicit AtomicsObject(Realm&);
|
||||
|
||||
JS_DECLARE_NATIVE_FUNCTION(add);
|
||||
JS_DECLARE_NATIVE_FUNCTION(and_);
|
||||
JS_DECLARE_NATIVE_FUNCTION(compare_exchange);
|
||||
JS_DECLARE_NATIVE_FUNCTION(exchange);
|
||||
JS_DECLARE_NATIVE_FUNCTION(is_lock_free);
|
||||
JS_DECLARE_NATIVE_FUNCTION(load);
|
||||
JS_DECLARE_NATIVE_FUNCTION(or_);
|
||||
JS_DECLARE_NATIVE_FUNCTION(pause);
|
||||
JS_DECLARE_NATIVE_FUNCTION(store);
|
||||
JS_DECLARE_NATIVE_FUNCTION(sub);
|
||||
JS_DECLARE_NATIVE_FUNCTION(wait);
|
||||
JS_DECLARE_NATIVE_FUNCTION(wait_async);
|
||||
JS_DECLARE_NATIVE_FUNCTION(notify);
|
||||
JS_DECLARE_NATIVE_FUNCTION(xor_);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue