1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:27:35 +00:00

LibIPC: Allow transporting a SharedCircularQueue over IPC

This commit is contained in:
kleines Filmröllchen 2022-02-01 20:49:29 +01:00 committed by Linus Groh
parent 6b13436ef6
commit fc7d231b00
2 changed files with 23 additions and 0 deletions

View file

@ -8,6 +8,7 @@
#include <AK/Concepts.h>
#include <AK/StdLibExtras.h>
#include <LibCore/SharedCircularQueue.h>
#include <LibIPC/Forward.h>
#include <LibIPC/Message.h>
@ -77,6 +78,13 @@ public:
return *this;
}
template<typename T, size_t Size>
Encoder& operator<<(Core::SharedSingleProducerCircularQueue<T, Size> const& queue)
{
*this << IPC::File(queue.fd());
return *this;
}
template<Enum T>
Encoder& operator<<(T const& enum_value)
{