I am looking at IPC between .NET and C on Linux. I have managed to get some shared memory working using:
C shm_open and mmap
I need a mechanism though to be able to synchronize the changes between my .NET application and the C application and i cannot find a way to have a shared lock mechanism.
I have looked at named semaphores (but this is not supported on linux in .NET). I have looked at named Mutex (but this is not supported in C on linux). I have looked at creating a shared memory area for a phtread_mutex_t object in C on linux which works but i have no way to map that to anything in the .NET environment.
Does anyone know of a way I can do this or maybe get the pthread_mutex_t method working?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)