Skip to content

Commit

Permalink
Make HELP_VIWER_INFO an atomic record in HPC-GAP.
Browse files Browse the repository at this point in the history
This permits packages to add entries after initialization, while
still allowing access from multiple threads.
  • Loading branch information
rbehrends committed Apr 21, 2020
1 parent 777b36c commit 29236ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion lib/helpview.gd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
## </Description>
## </ManSection>
## <#/GAPDoc>
BindGlobal("HELP_VIEWER_INFO", rec());
if IsHPCGAP then
BindGlobal("HELP_VIEWER_INFO", AtomicRecord());
else
BindGlobal("HELP_VIEWER_INFO", rec());
fi;

DeclareGlobalFunction("FindWindowId");
DeclareGlobalFunction("SetHelpViewer");
Expand Down
4 changes: 0 additions & 4 deletions lib/helpview.gi
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,6 @@ show := function(file)
end
);

if IsHPCGAP then
MakeReadOnlyObj(HELP_VIEWER_INFO);
fi;

#############################################################################
##
#F SetHelpViewer(<viewer>): Set the viewer used for help
Expand Down

0 comments on commit 29236ab

Please sign in to comment.