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:
parent
6b13436ef6
commit
fc7d231b00
2 changed files with 23 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue