mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
Meta+LibHTTP through LibWeb: Make clang-format-10 clean
This commit is contained in:
parent
ede5dbd7b3
commit
08f9bc26a6
65 changed files with 297 additions and 273 deletions
|
@ -24,10 +24,10 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <LibThread/BackgroundAction.h>
|
||||
#include <LibThread/Thread.h>
|
||||
#include <LibThread/Lock.h>
|
||||
#include <AK/Queue.h>
|
||||
#include <LibThread/BackgroundAction.h>
|
||||
#include <LibThread/Lock.h>
|
||||
#include <LibThread/Thread.h>
|
||||
|
||||
static LibThread::Lockable<Queue<Function<void()>>>* s_all_actions;
|
||||
static LibThread::Thread* s_background_thread;
|
||||
|
|
|
@ -46,7 +46,7 @@ class BackgroundActionBase {
|
|||
friend class BackgroundAction;
|
||||
|
||||
private:
|
||||
BackgroundActionBase() {}
|
||||
BackgroundActionBase() { }
|
||||
|
||||
static Lockable<Queue<Function<void()>>>& all_actions();
|
||||
static Thread& background_thread();
|
||||
|
@ -65,7 +65,7 @@ public:
|
|||
return adopt(*new BackgroundAction(move(action), move(on_complete)));
|
||||
}
|
||||
|
||||
virtual ~BackgroundAction() {}
|
||||
virtual ~BackgroundAction() { }
|
||||
|
||||
private:
|
||||
BackgroundAction(Function<Result()> action, Function<void(Result)> on_complete)
|
||||
|
|
|
@ -51,7 +51,7 @@ void LibThread::Thread::start()
|
|||
[](void* arg) -> void* {
|
||||
Thread* self = static_cast<Thread*>(arg);
|
||||
size_t exit_code = self->m_action();
|
||||
self->m_tid = 0;
|
||||
self->m_tid = 0;
|
||||
return (void*)exit_code;
|
||||
},
|
||||
static_cast<void*>(this));
|
||||
|
@ -64,7 +64,7 @@ void LibThread::Thread::start()
|
|||
dbg() << "Started a thread, tid = " << m_tid;
|
||||
}
|
||||
|
||||
void LibThread::Thread::quit(void *code)
|
||||
void LibThread::Thread::quit(void* code)
|
||||
{
|
||||
ASSERT(m_tid == pthread_self());
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public:
|
|||
virtual ~Thread();
|
||||
|
||||
void start();
|
||||
void quit(void *code = 0);
|
||||
void quit(void* code = 0);
|
||||
|
||||
private:
|
||||
Function<int()> m_action;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue