|
|
|
|
|
by bonzini
73 days ago
|
|
Usually a global lock is a lock that is taken outside all others and is taken for large parts of the runtime (or even, everywhere the thread isn't waiting on a condition variable, file descriptor and the like). Mutex::new(AppConfig::default()) might very well be a small, leaf mutex. |
|