From cca53bc19952feb02fb01207f636bd66d5f2c8d2 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Mon, 25 Feb 2019 19:57:07 -0800 Subject: fs: Some comments. --- fs/common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fs/common.c') diff --git a/fs/common.c b/fs/common.c index 7281147..c2bf3dd 100644 --- a/fs/common.c +++ b/fs/common.c @@ -16,6 +16,10 @@ void common_init() { if (pipe(ws_to_tabfs)) exit(1); } +// FIXME: we probably need memory fences here?? especially on +// non-x86?? idk +// see https://stackoverflow.com/questions/35837539/does-the-use-of-an-anonymous-pipe-introduce-a-memory-barrier-for-interthread-com + void common_send_tabfs_to_ws(char *request_data) { write(tabfs_to_ws[1], &request_data, sizeof(request_data)); } -- cgit v1.2.3