Skip to content

Commit 35cea00

Browse files
committed
Fixed examples.
1 parent 9fe1af7 commit 35cea00

7 files changed

Lines changed: 287 additions & 464 deletions

File tree

‎benchmarks/src/Main.cpp‎

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// (See accompanying file LICENSE_1_0.txt or copy at
55
// http://www.boost.org/LICENSE_1_0.txt)
66

7-
//#define REACT_ENABLE_LOGGING
87
#if 0
98
//#include "tbb/tick_count.h"
109
//#include "tbb/tbbmalloc_proxy.h"
@@ -218,46 +217,11 @@ int main()
218217
//runBenchmarks();
219218
//debugBenchmarks();
220219
//profileBenchmark();
221-
222-
223220
}
224221

225-
struct Data
226-
{
227-
State<int> a;
228-
State<int> b;
229-
230-
State<Data*> (a, b);
231-
};
232-
233222
#endif
234223

235-
#include "react/common/expected.h"
236-
#include "react/state.h"
237-
#include "react/event.h"
238-
#include "react/algorithm.h"
239-
#include <iostream>
240-
241-
#define unwind_on_error(x) if (!x) return UnwindExpected(std::move(x));
242-
243-
using namespace react;
244-
245-
246224
int main()
247225
{
248-
Group g;
249-
250-
VarSignal<int> t1(g);
251-
VarSignal<int> t2(g);
252-
253-
EventSource<int> e1(g);
254-
EventSource<int> e2(g);
255-
256-
auto h1 = Hold(1, e1);
257-
auto h2 = Hold(2, e2);
258-
259-
auto m1 = Monitor(t1);
260-
auto it1 = Iterate<int>(10, [] (EventRange<int> evnts, int b) { return b; }, e1);
261-
262226
return 0;
263227
}

0 commit comments

Comments
 (0)