2023-06-21 23:42:21 -07:00
|
|
|
#include "object/ipc_object.h"
|
|
|
|
|
|
|
|
#include "scheduler/scheduler.h"
|
|
|
|
|
2023-11-03 00:37:53 -07:00
|
|
|
glcr::ErrorCode IpcObject::Send(IpcMessage&& message) {
|
|
|
|
return GetSendMessageQueue().PushBack(glcr::Move(message));
|
2023-06-21 23:42:21 -07:00
|
|
|
}
|
|
|
|
|
2023-11-03 00:12:28 -07:00
|
|
|
glcr::ErrorOr<IpcMessage> IpcObject::Recv(uint64_t data_buf_size,
|
|
|
|
uint64_t cap_buf_size) {
|
|
|
|
return GetRecvMessageQueue().PopFront(data_buf_size, cap_buf_size);
|
2023-06-21 23:42:21 -07:00
|
|
|
}
|