second round of documentation

This commit is contained in:
17liamnaddell
2018-07-21 20:48:33 -04:00
parent 9d1fb3013d
commit c06f403dd2
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -70,6 +70,8 @@ fn init_contexts() -> RwLock<ContextList> {
/// Get the global schemes list, const
pub fn contexts() -> RwLockReadGuard<'static, ContextList> {
//call once will init_contexts only once during the kernel's exececution, otherwise it will return the current context via a
//cache.
CONTEXTS.call_once(init_contexts).read()
}