I like to anonce a class library providing effective and operating system
independent interface to shared memory. This class makes it possible for
several applications to access objects in shared memory. Methods
for allocation/deallocation of objects in shared memory, setting exclusive
or shared locks are available. Locks can be nested and can be used to
to shared objects by different threads within process as well as
by different processes.
Locking is based on atomic instructions of i486 (and higher) processors XADD
So no context switching are required to lock storage in most common case,
when no other processes are working with the storage. That is why overhead
of locking is minimal.
In addition to the storage locking mechanism, there are two other
"semaphore" and "event", providing system independent and convenient
interface for interprocess
There is also implementation of Posix semaphores for Linux based in IPC
Also interface of semaphores located in shared memory is provided.
This library can be used under Windows NT/95 as well as at Unix's for i86
platform with GCC (currently tested only for Linux). It can be downloaded
from my homepage: