Skip to content
Advertisement

Tag: readwritelock

sharing read-write lock between interprocess

I have two processes rwlock1(parent) and rwlock2(child) . i want to use read-writer lock between processes , i need to transfer pthread_rwlock_t mem_lock to child process, i have a simple code , how can i trasfer the handle . i dont want to use a mutex. rwlock1(parent)’s code Answer I haven’t tried, but it looks like this can be done

Advertisement