I'm using Clozure CL to write an app. In the app, I need to write several files, so I made a read-write-lock for each file.
Now I'm trying to write a quit function. It checks whether all the file writings are complete and then quit. Basically it works like below:
- Grab all the files read-write-locks
- Quit CCL
I read the Clozure CL document, but can't find any function like grab-write-lock. I can only find "grab-lock", "with-read-lock" and "with-write-lock". 'grab-lock' won't work on read-write-lock, the other two will release the lock automatically. So how can I grab all the file read-write-locks (not release them) and quit the app?