This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by Sage configure 10.4.beta6, which was | |
generated by GNU Autoconf 2.72. Invocation command line was | |
$ ./configure --with-system-givaro=no --no-create --no-recursion | |
## --------- ## | |
## Platform. ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by Sage configure 10.4.beta6, which was | |
generated by GNU Autoconf 2.72. Invocation command line was | |
$ ./configure --with-system-givaro=no --no-create --no-recursion | |
## --------- ## | |
## Platform. ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MultiFork(n) | |
res := []; | |
for i in [1..n] do | |
if #res eq i - 1 then // only the parent gets inside of this loop | |
f := Fork(); | |
if f ne 0 then // parent branch | |
Append(~res, f); | |
else | |
return [], i; // child branch | |
end if; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MultiFork(n) | |
res := []; | |
for i in [1..n] do | |
if #res eq i - 1 then | |
f := Fork(); | |
if f ne 0 then | |
Append(~res, f); | |
else | |
return [], i; | |
end if; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MultiFork(n) | |
res := []; | |
for i in [1..n] do | |
if #res eq i - 1 then | |
f := Fork(); | |
if f ne 0 then | |
Append(~res, f); | |
else | |
return [], i; | |
end if; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MultiFork(n) | |
parentpid := Getpid(); | |
IsParentProcess := func<|parentpid eq Getpid()>; | |
res := []; | |
for i in [1..n] do | |
if IsParentProcess() then | |
Append(~res, Fork()); | |
if not IsParentProcess() then | |
return [], i; | |
end if; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attach("multifork.m"); | |
r := 0; | |
b, r := MultiFork(10); | |
if r ne 0 then | |
exit 0; | |
end if; | |
// foo bar | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.github/codecov.yml | 4 + | |
.github/workflows/CI.yml | 175 +- | |
.github/workflows/push_CI.yml | 65 +- | |
.github/workflows/release.yml | 124 +- | |
.gitignore | 10 +- | |
AUTHORS | 4 +- | |
CMake/FindCBLAS.cmake | 33 +- | |
CMake/Findgmp.cmake | 66 + | |
CMake/Findmpfr.cmake | 57 + | |
CMake/cmake_config.h.in | 5 +- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.github/codecov.yml | 4 + | |
.github/workflows/CI.yml | 175 +- | |
.github/workflows/push_CI.yml | 65 +- | |
.github/workflows/release.yml | 124 +- | |
.gitignore | 10 +- | |
AUTHORS | 4 +- | |
CMake/FindCBLAS.cmake | 33 +- | |
CMake/Findgmp.cmake | 66 + | |
CMake/Findmpfr.cmake | 57 + | |
CMake/cmake_config.h.in | 5 +- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.github/codecov.yml | 4 [32m+[m | |
.github/workflows/CI.yml | 175 [32m+[m[31m-[m | |
.github/workflows/push_CI.yml | 65 [32m+[m[31m-[m | |
.github/workflows/release.yml | 124 [32m+[m[31m-[m | |
.gitignore | 10 [32m+[m[31m-[m | |
AUTHORS | 4 [32m+[m[31m-[m | |
CMake/FindCBLAS.cmake | 33 [32m+[m[31m-[m | |
CMake/Findgmp.cmake | 66 [32m+[m | |
CMake/Findmpfr.cmake | 57 [32m+[m | |
CMake/cmake_config.h.in | 5 [32m+[m[31m-[m |
NewerOlder