2021-08-17 | Paul Boddie | raw annotate files changeset graph | Introduced separate notification domains for file-specific and general waiting and notification operations. This involves moving the notification state into the notifier for each domain. A per-task notifier should allow the blocking status of file descriptors/structures to be preserved across multiple threads, whereas a per-thread notifier (or perhaps a local notifier instead in future) permits general or "open" waiting for notifications associated with a restricted set of file descriptors. |
1 -- vim:set ft=lua: 2 3 local L4 = require("L4"); 4 5 local l = L4.default_loader; 6 7 local blocksvr = l:new_channel(); 8 9 l:startv({ 10 caps = { 11 server = blocksvr:svr(), 12 }, 13 log = { "blocksvr", "r" }, 14 }, 15 "rom/dstest_block_server", "10"); 16 17 l:startv({ 18 caps = { 19 server = blocksvr, 20 }, 21 log = { "client", "r" }, 22 }, 23 "rom/dstest_ext2fs_client", "server", "rom/e2test.fs");