[Mono-dev] Mutex Bug
bperry.volatile at gmail.com
Wed Jul 2 20:43:00 UTC 2014
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
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
http://volatile-minds.blogspot.com -- blog
http://www.volatileminds.net -- website
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list