Global mutex and boost.thread
I need to perform disk activity to a shared file across multiple instances of my program... my program was originally written using windows API and I'm porting it to other systems. and I'm using boost.thread for my threads.. Any way to create a global mutex? on windows all you need to do is provide "Global\" Prefix to the mutex name. Any ideas will be appreciated. Thanks in advanced. Dee
On Fri, 15 Sep 2006 14:57:14 -0300, Daher <dee@digitalthinker.org> wrote:
I need to perform disk activity to a shared file across multiple instances of my program... my program was originally written using windows API and I'm porting it to other systems. and I'm using boost.thread for my threads.. Any way to create a global mutex? on windows all you need to do is provide "Global\" Prefix to the mutex name.
I think you can simply use a global mutex object. Bruno
You might want to look at the new Boot.Interprocess library (previously known as shmem). Tony On 9/15/06, Daher <dee@digitalthinker.org> wrote:
I need to perform disk activity to a shared file across multiple instances of my program... my program was originally written using windows API and I'm porting it to other systems. and I'm using boost.thread for my threads.. Any way to create a global mutex? on windows all you need to do is provide "Global\" Prefix to the mutex name.
Any ideas will be appreciated.
Thanks in advanced. Dee _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Bruno Martínez
-
Daher
-
Gottlob Frege