← Back to context Comment by xmcqdpt2 5 hours ago Does this avoid the dining philosopher deadlock? 1 comment xmcqdpt2 Reply gpderetta 5 hours ago yes, 'synchronize' uses a try_lock/backoff algorithm, same as std::scoped_lock.edit: it could theoretically livelock, but I believe most if not all STM implementations also do not guarantee forward progress.
gpderetta 5 hours ago yes, 'synchronize' uses a try_lock/backoff algorithm, same as std::scoped_lock.edit: it could theoretically livelock, but I believe most if not all STM implementations also do not guarantee forward progress.
yes, 'synchronize' uses a try_lock/backoff algorithm, same as std::scoped_lock.
edit: it could theoretically livelock, but I believe most if not all STM implementations also do not guarantee forward progress.