Fischler (src++at++rose)
Mon, 22 May 1995 17:04:48 -0700
This is exactly the situation that pfDataPools exist for.
Look at the pfDataPool man page.
You will allocate your ViewState structure with a set ID
out of a named pfDataPool.
Unrelated processes will be able to attach to the pfDataPool,
find the item with the known ID, and then read/write it.
Locking facilities exist for all ID-ed items in a pfDataPool.
For a detailed example, you can look in
/usr/src/Performer/src/lib/libpfutil
The GUI and input handling utilities use a data pool for their shared data.
The data pool is created in shmem.c and in gui.c the getGUIDataPool()
routine attaches to the GUI data pool.
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Graphics Dev.
src++at++sgi.com (415) 390 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:30 PDT