[Mono-dev] Mutex Bug

Brandon Perry bperry.volatile at gmail.com
Wed Jul 2 20:44:19 UTC 2014


Though now that I think about it, I seem to recall OSX having odd
FileWatcher issues, but I was not targeting OSX.


On Wed, Jul 2, 2014 at 3:43 PM, Brandon Perry <bperry.volatile at gmail.com>
wrote:

> Do you *have* to write to the same file?
>
> I recently had to deal with a similar issue, but I decided to have each
> thread/process write files that matched a regex, and a coordinating process
> looking for files that matched the regex to read and consume.
>
> So I wrote a file like file-<guid>.txt for each thread/process and the
> parent used a FileWatcher to find new files that matched the regex.
>
> Was a bit dirty, but it worked, and I think it was relatively platform
> agnostic...
>
>
> On Wed, Jul 2, 2014 at 3:39 PM, Edward Ned Harvey (mono) <
> edward.harvey.mono at clevertrove.com> wrote:
>
>> > From: Brandon Perry [mailto:bperry.volatile at gmail.com]
>> >
>> > You could use dbus if you don't care about windows.
>>
>> I care about windows, linux, and mac.  I gather, my options are:
>> WCF (poorly supported in mono, right?),
>> Remoting (which is supposed to be deprecated since WCF, right?),
>> DBus (???)
>> Socket (cough cough)
>> Mutex (doesn't work on mac)
>> Named pipes (seems not available in mono, right?)
>>
>> Maybe looping and polling the file isn't such a terrible solution after
>> all.....
>>
>
>
>
> --
> http://volatile-minds.blogspot.com -- blog
> http://www.volatileminds.net -- website
>



-- 
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140702/c33923ab/attachment.html>


More information about the Mono-devel-list mailing list