We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa3953e commit 2f98d59Copy full SHA for 2f98d59
README.md
@@ -0,0 +1,33 @@
1
+# MultithreadingTask
2
+Multithreading task controller
3
+
4
5
6
+ auto dis = GContext->taskDispatcher;
7
8
+ for (int i = 0; i < 1000; i++)
9
+ {
10
+ dis->PushTask(new TestTask(1.f, 0.f, 2.f));
11
+ }
12
13
14
15
+ double dur;
16
+ clock_t start, end;
17
+ start = clock();
18
19
+ dis->Flush();
20
+ dis->Wait();
21
22
+ end = clock();
23
+ dur = (double)(end - start);
24
+ printf("Use Time:%f\n", (dur / CLOCKS_PER_SEC));
25
26
+ Sleep(2000);
27
28
29
30
31
32
33
0 commit comments