Not so Ubuntu related C question

Dave Walker dave at mudsite.com
Wed Jul 13 21:51:59 UTC 2005


adi zebic wrote:

>On 7/13/05, dave walker <dave at mudsite.com> wrote:
>  
>
>>I have a question, and just thought someone here may have an answer for me.
>>
>>I am writing a library, with plugins in Thunderbird and Gaim (for right
>>now).  The library is an API to edit an XML file.  So both, TB and GAIM,
>>should not be able to issue a write command to the file at the same
>>time.  My question is, am I able to use mutex in the library to allow
>>only one process to write at a time, OR, will I need to use a file lock?
>>
>>Thanks
>>
>>--
>>Dave Walker
>>    
>>
>
>Hi Dave,
>did you try to post your gaim[1]/thunderbird [2] specific question to
>they respective dev mailing lists?
>
>[1] http://sourceforge.net/mail/?group_id=235
>
>[2] http://www.mozilla.org/projects/help-viewer/list
>
>ADI
>
>  
>
It's not so much a gaim/tb question as it is a 'how C works' question.

Would I be able to use Mutex through a library used in 2 different 
programs (i gave gaim/thunderbird as an example), or would I have to use 
a file lock.

--
dave




More information about the ubuntu-users mailing list