Re: File locking on EmbperlObject::Execute

2002-06-06 Thread Angus Lees
At Wed, 5 Jun 2002 15:50:20 +1000, Gavin Carr wrote: > On Wed, Jun 05, 2002 at 03:49:59PM +1000, Angus Lees wrote: > > At Wed, 5 Jun 2002 14:37:28 +1000, Gavin Carr wrote: > > > I've got a situation where I want to able to write lock some of my epl > > > components and know that the locking will b

Re: File locking on EmbperlObject::Execute

2002-06-05 Thread Gavin Carr
On Wed, Jun 05, 2002 at 11:20:15AM +0200, Gerald Richter - ecos gmbh wrote: > > Yeah that handles atomic writes, but not proper atomic updates - read > > data, modify, write, avoiding the race condition between the read and > > the write. I think that requires proper locking? > > If you only have

Re: File locking on EmbperlObject::Execute

2002-06-05 Thread Gerald Richter - ecos gmbh
> > Yeah that handles atomic writes, but not proper atomic updates - read > data, modify, write, avoiding the race condition between the read and > the write. I think that requires proper locking? > If you only have concurrent reads, it should work. If you also have concurrent writes/updates, the

Re: File locking on EmbperlObject::Execute

2002-06-04 Thread Gavin Carr
On Wed, Jun 05, 2002 at 03:49:59PM +1000, Angus Lees wrote: > At Wed, 5 Jun 2002 14:37:28 +1000, Gavin Carr wrote: > > I've got a situation where I want to able to write lock some of my epl > > components and know that the locking will be honoured ... > > just do the usual "write to a temporary f

Re: File locking on EmbperlObject::Execute

2002-06-04 Thread Gavin Carr
On Wed, Jun 05, 2002 at 08:22:36AM +0200, Gerald Richter wrote: > > I've got a situation where I want to able to write lock some of my epl > > components and know that the locking will be honoured ... > > You want to write lock the Embperl source files? Do you creating them > dynamicly? Otherwise

Re: File locking on EmbperlObject::Execute

2002-06-04 Thread Gerald Richter
Hi, > > I've got a situation where I want to able to write lock some of my epl > components and know that the locking will be honoured ... > You want to write lock the Embperl source files? Do you creating them dynamicly? Otherwise I can't imagine for what this should be good for. Gerald

Re: File locking on EmbperlObject::Execute

2002-06-04 Thread Angus Lees
At Wed, 5 Jun 2002 14:37:28 +1000, Gavin Carr wrote: > I've got a situation where I want to able to write lock some of my epl > components and know that the locking will be honoured ... just do the usual "write to a temporary file next to it, then rename over the file you wanted" trick. IO::Atom

File locking on EmbperlObject::Execute

2002-06-04 Thread Gavin Carr
Hi Gerald, Are you doing any explicit file locking on the reads involved in an EmbperlObject::Execute? If not, could I make it a feature request? Maybe an 'flock' argument to Execute or something? I've got a situation where I want to able to write lock some of my epl components and know that t