about scif_mmap and memory protection using mutex

about scif_mmap and memory protection using mutex

Hi,

After using scif_mmap to establish a piece of shared memory between card and host, is it possible to use a mutex (of some kind) to sync the access to the shared data in this piece of shared memory? I tried to use a portion of this shared memory range as a pthread mutex to be used by both sides(the mutex is set PTHREAD_PROCESS_SHARED attribute), but the mutex doesn't work on remote side. pthread_mutex_lock just hangs in an infinite loop. Is there any other methods that I can use as a mutex? Thanks guys!

Zheng Siyao

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Zheng,

Unfortunately, your issue fell through the cracks.

Do you still need an answer?

Regards
--
Taylor

 

Quote:

Taylor Kidd (Intel) wrote:

Zheng,

Unfortunately, your issue fell through the cracks.

Do you still need an answer?

Regards
--
Taylor

 

It would be great if there is an answer, I am still interested in this topic :)

Leave a Comment

Please sign in to add a comment. Not a member? Join today