Record a shared memory reference
int PgShmemAttach( char const *name, unsigned long size, void *addr );
This function records a reference to an existing block of shared memory (that is, a block created with shm_open(), sized with ltrunc(), and mapped into the process's address space with mmap()).
PgShmemCleanup() is called automatically by atexit() when your program terminates normally. If your program terminates abnormally, it should call PgShmemCleanup() explicitly.
See the errors for shm_open() in the C Library Reference.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PgDrawBitmapmx(), PgDrawImagemx(), PgShmemCleanup(), PgShmemCreate(), PgShmemDestroy(), PgShmemDetach()
shm_open(), ltrunc(), mmap() in the C Library Reference