-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProgram.cpp
More file actions
30 lines (24 loc) · 1.54 KB
/
Program.cpp
File metadata and controls
30 lines (24 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ===========================================================================
// Program.cpp // Event Loop
// ===========================================================================
extern void test_event_loop_01(); // just starting and stopping event loop
extern void test_event_loop_02(); // demonstrating event loop with one event
extern void test_event_loop_03(); // demonstrating event loop with five events
extern void test_event_loop_04(); // demonstrating event loop with five lambdas
extern void test_event_loop_10(); // demonstrating enqueuing events with parameters
extern void test_event_loop_20(); // searching prime numbers: first enqueuing events, than starting calculations
extern void test_event_loop_21(); // searching prime numbers: enqueuing events while event loop is active
int main()
{
test_event_loop_01(); // just starting and stopping event loop
test_event_loop_02(); // demonstrating event loop with one event
test_event_loop_03(); // demonstrating event loop with five events
test_event_loop_04(); // demonstrating event loop with five lambdas
test_event_loop_10(); // demonstrating enqueuing events with parameters
test_event_loop_20(); // searching prime numbers: first enqueuing events, than starting calculations
test_event_loop_21(); // searching prime numbers: enqueuing events while event loop is active
return 0;
}
// ===========================================================================
// End-of-File
// ===========================================================================