Improve comment.

This commit is contained in:
Relintai 2025-05-11 11:50:20 +02:00
parent da142951ec
commit b438b2b35a

View File

@ -195,9 +195,9 @@ void User::from_dict(const Dictionary &dict) {
} }
Dictionary User::_to_dict() { Dictionary User::_to_dict() {
// RW Locks are not re-entrant (read_locking would likely work), but since concurrency is hard // RW Lock writes are not re-entrant (read locking would work), but since concurrency is hard
// api consistency is important. These types of classes hould always be locked from the outside. // api consistency is important. These types of classes hould always be locked from the outside.
// Use read_lock() in the caller and do all read operations that you want. // Use read_lock() in the caller and then do all read operations that you want.
Dictionary dict; Dictionary dict;