| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod WaitForEnd |  | { |  |   Description: |  |   [* |  |     This method will wait until BenchmarkUtilities::End(..) happens. |  |     This is needed because the method that was called (in this case Plan) could return before End(..). |  |     Typically that happens when separate threads are used. Without WaitForEnd(), |  |     Plan would be called again before the previous call to Plan is finished, or the script would exit thereby terminating the server. |  |     Maintain by R&D |  |   *] |  |   TextBody: |  |   [* |  |     // rend May-10-2012 (created) |  |      |  |      |  |     while( not OS::IsFile( OS::LogDir() + 'benchmarkendsignal' ) ) |  |     { |  |       OS::Sleep(100); |  |     } |  |   *] |  | } | 
 |