changeset 767:802447f7d2fd

add Fork.h
author ikkun <ikkun@cr.ie.u-ryukyu.ac.jp>
date Wed, 06 Jan 2021 16:13:16 +0900
parents a71cbab2086f (current diff) df6c97510d63 (diff)
children 0216990e111b 76a2d8ea262f
files src/parallel_execution/AtomicT.h
diffstat 4 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Wed Jan 06 16:12:48 2021 +0900
+++ b/.hgignore	Wed Jan 06 16:13:16 2021 +0900
@@ -23,3 +23,7 @@
 .vscode
 *ninja*
 *.orig
+
+syntax:regexp
+
+.*\.c\.\d+
--- a/src/parallel_execution/AtomicT.h	Wed Jan 06 16:12:48 2021 +0900
+++ b/src/parallel_execution/AtomicT.h	Wed Jan 06 16:13:16 2021 +0900
@@ -1,4 +1,4 @@
-typedef struct AtomicT<Impl,T>{
+typedef struct AtomicT <Impl,T>{
     union Data* atomicTImpl;
     T newData;
     __code checkAndSet(Impl* atomicTImpl, T newData, __code next(...), __code fail(...));
--- a/src/parallel_execution/AtomicTImpl.h	Wed Jan 06 16:12:48 2021 +0900
+++ b/src/parallel_execution/AtomicTImpl.h	Wed Jan 06 16:13:16 2021 +0900
@@ -1,5 +1,5 @@
 typedef struct AtomicTImpl <T,> impl AtomicT {
-  __code next(...);
   T atomic;
   T init;
+  __code next(...);
 } AtomicTImpl;
--- a/src/parallel_execution/tools/check_convert_context_struct.pl	Wed Jan 06 16:12:48 2021 +0900
+++ b/src/parallel_execution/tools/check_convert_context_struct.pl	Wed Jan 06 16:13:16 2021 +0900
@@ -22,6 +22,9 @@
 
 
 my $interface_file = shift or pod2usage(1);
+if ($interface_file !~ /\.(?:h|dg)$/) {
+  die "require header file";
+}
 my $h2context = Gears::Interface->parse($interface_file);
 my $context = Gears::Context->h2context_str($h2context);