django-mysql icon indicating copy to clipboard operation
django-mysql copied to clipboard

Re-entrant Lock

Open adamchainz opened this issue 10 years ago • 0 comments

A follow-up to #89 . Using MariaDB's metadata_lock_info, a re-entrant lock, like threading.RLock, could be implemented, by querying INFORMATION_SCHEMA.metadata_lock_info each time to determine if this is the first enter on the lock or not. Would need to be thread safe.

adamchainz avatar May 12 '15 12:05 adamchainz