mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37:35 +00:00
LibC: Implement pthread_cancel
This commit is contained in:
parent
1269ce0c35
commit
899fd74f8e
5 changed files with 71 additions and 4 deletions
23
Userland/Libraries/LibC/bits/pthread_cancel.h
Normal file
23
Userland/Libraries/LibC/bits/pthread_cancel.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
// This is our hook for cancellation points.
|
||||
#ifdef _DYNAMIC_LOADER
|
||||
inline void __pthread_maybe_cancel(void)
|
||||
{
|
||||
}
|
||||
#else
|
||||
void __pthread_maybe_cancel(void);
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
Loading…
Add table
Add a link
Reference in a new issue