Throw an exception when pthread_key_create fails
authorPrzemyslaw Ciezkowski <p.ciezkowski@samsung.com>
Fri, 23 Nov 2012 08:50:48 +0000 (09:50 +0100)
committerGerrit Code Review <gerrit2@kim11>
Fri, 23 Nov 2012 11:43:21 +0000 (20:43 +0900)
commit0ada933fa6f725548cb46c3654527047c6b0839a
tree80179456f1ae4472425b4e0e852d5f918881f248
parent6deaedbe0e56ea3d51e691cffab788dd7089b54a
Throw an exception when pthread_key_create fails

[Issue#] TWEB-427
[Feature] ThreadLocalVariable should not call Assert
when pthread_key_create fails
[Cause] Process gets SIGABORT when ThreadLocalVariable fails.
[Solution] Replace with exception, allow to catch it.

[Verification] Run iframes.wgt widget from wrt-extra repository.
WebProcess should not fail when counter in widget hits ~160.
Verification requires patch from plugins_common where this excepion is handled.

Change-Id: I7205afcaed091732f0233500e58d596fed1bdf4f
modules/core/include/dpl/thread.h