|
1 | | -// Copyright (C) 2003-2010 Xtensive LLC. |
| 1 | +// Copyright (C) 2008-2021 Xtensive LLC. |
2 | 2 | // All rights reserved. |
3 | 3 | // For conditions of distribution and use, see license. |
4 | 4 | // Created by: Alex Yakunin |
@@ -162,6 +162,7 @@ public void ExecuteInvokeAsync(object argument) |
162 | 162 | Thread thread = Thread.CurrentThread; |
163 | 163 | using (new Measurement("Execute", log ? MeasurementOptions.Log : 0, passCount)) |
164 | 164 | for (int j = 0; j < passCount; j++) { |
| 165 | + |
165 | 166 | IAsyncResult r = d.BeginInvoke(null, null); |
166 | 167 | d.EndInvoke(r); |
167 | 168 | } |
@@ -197,12 +198,14 @@ private void Test(double speedFactor) |
197 | 198 | LockTest(sf, 256); |
198 | 199 | LockTest(sf, 1024); |
199 | 200 | } |
200 | | - InvokeAsyncTest(sf, 1); |
201 | | - if (!warmup) { |
202 | | - InvokeAsyncTest(sf, 2); |
203 | | - InvokeAsyncTest(sf, 4); |
204 | | - InvokeAsyncTest(sf, 8); |
205 | | - } |
| 201 | + // Commented out due to lack of support for BeginInvoke/EndInvoke |
| 202 | + // and using tasks and async/await is probably what original purpose of the test |
| 203 | + //InvokeAsyncTest(sf, 1); |
| 204 | + //if (!warmup) { |
| 205 | + // InvokeAsyncTest(sf, 2); |
| 206 | + // InvokeAsyncTest(sf, 4); |
| 207 | + // InvokeAsyncTest(sf, 8); |
| 208 | + //} |
206 | 209 | } |
207 | 210 | } |
208 | 211 |
|
|
0 commit comments