Re: [1/2] ntdll/tests: Add tests for TpSimpleTryPost function.
24 Feb
2015
24 Feb
'15
1:57 p.m.
Sebastian Lackner <sebastian(a)fds-team.de> writes:
+ /* post the callback using new threadpool */ + userdata = 0; + memset(&environment, 0, sizeof(environment)); + environment.Version = 1; + environment.Pool = pool; + status = pTpSimpleTryPost(simple_cb, &userdata, &environment); + ok(!status, "TpSimpleTryPost failed with status %x\n", status); + while (userdata == 0) Sleep(10); + ok(userdata == 1, "expected userdata = 1, got %u\n", userdata);
Please try to use synchronization objects instead of sleeps.
+ /* make sure worker threads have terminated */ + Sleep(100);
Same here. Why do you need that? -- Alexandre Julliard julliard(a)winehq.org
4034
Age (days ago)
4034
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard