I'm putting together a new module that has flags that need to be set as files are checked in and checked out. A flag will need to be set when a file is checked out.
I'm thinking the semaphore table would be good for this, seeing as it exists, and would seemingly exist for this purpose, but before I start using it I would like to know a little more about it. It seems to have been added in Drupal 6.16 without actually ever being used for anything, and I've not found any reference material on it!
Does cron clear it out after the expiration date has passed? Can I set zero for it to never expire? Does anyone have any links with any references to this table and how it should be used?
Comments
lock.inc
Hi,
this table is used by
/includes/lock.inc
(see http://api.drupal.org/api/drupal/includes--lock.inc).Here's its purpose:
You can find calls to those lock_*() functions at a few places in the Core or modules.