77 {
78 if (sampleName == "empty")
79 {
80 static std::shared_ptr<SH::Sample>
result;
81 static std::once_flag
flag;
82 std::call_once (flag, [this]() {
83 auto myresult = std::make_shared<SH::SampleLocal> ("empty");
85 result = std::move (myresult);
86 });
88 }
89 if (sampleName == "single")
90 {
91 static std::shared_ptr<SH::Sample>
result;
92 static std::once_flag
flag;
93 std::call_once (flag, [this]() {
94 auto myresult = std::make_shared<SH::SampleLocal> ("single");
96 for (
unsigned iter = 0;
iter != 10000; ++
iter)
99 result = std::move (myresult);
100 });
102 }
103 if (sampleName == "multi")
104 {
105 static std::shared_ptr<SH::Sample>
result;
106 static std::once_flag
flag;
107 std::call_once (flag, [this]() {
108 auto myresult = std::make_shared<SH::SampleLocal> ("multi");
109 for (unsigned jter = 0; jter != 10; ++ jter)
110 {
112 for (
unsigned iter = 0;
iter != 10000; ++
iter)
115 }
116 result = std::move (myresult);
117 });
119 }
121 }
std::string makeFile(const std::vector< unsigned > &entries)