changeset 160:5de948efb678

mv move_data_gears to impl
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 14 Jan 2020 17:10:32 +0900
parents eda7ea83f4f3
children 06bf68d3b83b
files src/impl/pipe.h src/move_data_gears/pipe.h
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/impl/pipe.h	Tue Jan 14 17:10:32 2020 +0900
@@ -0,0 +1,9 @@
+typedef struct pipe<Impl, Isa> Impl file {
+    #define PIPESIZE 512
+    struct spinlock lock;
+    char data[PIPESIZE];
+    uint nread;     // number of bytes read
+    uint nwrite;    // number of bytes written
+    int readopen;   // read fd is still open
+    int writeopen;  // write fd is still open
+} pipe;
--- a/src/move_data_gears/pipe.h	Tue Jan 14 17:03:06 2020 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-typedef struct pipe<Impl, Isa> Impl file {
-    #define PIPESIZE 512
-    struct spinlock lock;
-    char data[PIPESIZE];
-    uint nread;     // number of bytes read
-    uint nwrite;    // number of bytes written
-    int readopen;   // read fd is still open
-    int writeopen;  // write fd is still open
-} pipe;