mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibIPC: Move AutoCloseFileDescriptor to its own header
This commit is contained in:
parent
1893f89799
commit
ccf303eefc
Notes:
github-actions[bot]
2025-06-17 21:38:15 +00:00
Author: https://github.com/stasoid
Commit: ccf303eefc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5010
Reviewed-by: https://github.com/ADKaster ✅
4 changed files with 42 additions and 29 deletions
|
@ -12,17 +12,6 @@
|
|||
|
||||
namespace IPC {
|
||||
|
||||
AutoCloseFileDescriptor::AutoCloseFileDescriptor(int fd)
|
||||
: m_fd(fd)
|
||||
{
|
||||
}
|
||||
|
||||
AutoCloseFileDescriptor::~AutoCloseFileDescriptor()
|
||||
{
|
||||
if (m_fd != -1)
|
||||
(void)Core::System::close(m_fd);
|
||||
}
|
||||
|
||||
void SendQueue::enqueue_message(Vector<u8>&& bytes, Vector<int>&& fds)
|
||||
{
|
||||
Threading::MutexLocker locker(m_mutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue