On 20/06/16 11:28, Mark Morgan Lloyd wrote:
I'm approaching a situation where up to four identical processes will be
reading and writing the same files. There will be process-level
synchronisation which should prevent clashes, but I'd still like to add
locking at the file level.

If you use sysutils.fileopen, file locking will automatically be used based on fmShare* constants you specify: http://www.freepascal.org/docs-html/current/rtl/sysutils/fileopen.html


Jonas

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to