mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
LibCore: Only build CThread on Serenity platforms.
This commit is contained in:
parent
6a5446d6dd
commit
e940d4b07b
Notes:
sideshowbarker
2024-07-19 13:04:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e940d4b07b2
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
#ifdef __serenity__
|
||||
|
||||
#include <AK/Assertions.h>
|
||||
#include <LibCore/CEventLoop.h>
|
||||
#include <LibCore/CThread.h>
|
||||
|
@ -27,3 +29,5 @@ CThread::CThread(int (*entry)(void*), void* user_data)
|
|||
CThread::~CThread()
|
||||
{
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef __serenity__
|
||||
|
||||
class CThread {
|
||||
public:
|
||||
static CThread& main_thread();
|
||||
|
@ -16,3 +18,6 @@ private:
|
|||
|
||||
int m_thread_id { -1 };
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue