Mercurial > hg > Gears > Gears
changeset 764:df6c97510d63
fix AtomicT
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 06 Jan 2021 16:08:31 +0900 |
parents | 360152262d99 |
children | c7bed8ab87d3 802447f7d2fd |
files | src/parallel_execution/AtomicT.h src/parallel_execution/AtomicTImpl.h src/parallel_execution/tools/check_convert_context_struct.pl |
diffstat | 3 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/parallel_execution/AtomicT.h Wed Jan 06 15:52:53 2021 +0900 +++ b/src/parallel_execution/AtomicT.h Wed Jan 06 16:08:31 2021 +0900 @@ -1,7 +1,7 @@ -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(...)); __code next(...); __code fail(...); -} Atomic; +} AtomicT;
--- a/src/parallel_execution/AtomicTImpl.h Wed Jan 06 15:52:53 2021 +0900 +++ b/src/parallel_execution/AtomicTImpl.h Wed Jan 06 16:08:31 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 15:52:53 2021 +0900 +++ b/src/parallel_execution/tools/check_convert_context_struct.pl Wed Jan 06 16:08:31 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);