Add timeout mechanism for time-limited function calls 01/33501/5
authorLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Mon, 12 Jan 2015 10:16:34 +0000 (11:16 +0100)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 15 Jan 2015 18:48:59 +0000 (19:48 +0100)
commit77233c42c5e1907839eb039d58ee486d2cf20903
tree7d9d2b43a02e7f8e3e7670ee166425eb295880d5
parent94abeeafc0438cee51d580861062bc0a6a3144d9
Add timeout mechanism for time-limited function calls

Timeout mechanism:
1) launches given function in new thread;
2) waits given time period;
3) cancels called function using custom user CancelFunction;
4) checks if function has finished in expected way;
5) returns function answer (value or exception).

Change-Id: Ia65d271095712e6afaaac96932f8d14d61b1702a
tests/common/timeout.h [new file with mode: 0644]