mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:47:37 +00:00
Add a C++ helper class for working with shared buffers.
This is a bit more comfortable than passing the shared buffer ID manually everywhere and keeping track of size etc.
This commit is contained in:
parent
0b5d5fc3c9
commit
eda0866992
14 changed files with 186 additions and 46 deletions
|
@ -14,9 +14,11 @@ __BEGIN_DECLS
|
|||
|
||||
extern char** environ;
|
||||
|
||||
int create_shared_buffer(pid_t peer_pid, size_t, void** buffer);
|
||||
int create_shared_buffer(pid_t peer_pid, int, void** buffer);
|
||||
void* get_shared_buffer(int shared_buffer_id);
|
||||
int release_shared_buffer(int shared_buffer_id);
|
||||
int seal_shared_buffer(int shared_buffer_id);
|
||||
int get_shared_buffer_size(int shared_buffer_id);
|
||||
int read_tsc(unsigned* lsw, unsigned* msw);
|
||||
inline int getpagesize() { return 4096; }
|
||||
pid_t fork();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue