mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibThread: Fix int to pointer conversion
This commit is contained in:
parent
7d84f09e7e
commit
8d95bd8418
5 changed files with 9 additions and 9 deletions
|
@ -15,7 +15,7 @@
|
|||
|
||||
namespace LibThread {
|
||||
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(int, ThreadError);
|
||||
TYPEDEF_DISTINCT_ORDERED_ID(intptr_t, ThreadError);
|
||||
|
||||
class Thread final : public Core::Object {
|
||||
C_OBJECT(Thread);
|
||||
|
@ -32,8 +32,8 @@ public:
|
|||
pthread_t tid() const { return m_tid; }
|
||||
|
||||
private:
|
||||
explicit Thread(Function<int()> action, StringView thread_name = nullptr);
|
||||
Function<int()> m_action;
|
||||
explicit Thread(Function<intptr_t()> action, StringView thread_name = nullptr);
|
||||
Function<intptr_t()> m_action;
|
||||
pthread_t m_tid { 0 };
|
||||
String m_thread_name;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue