projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656d280
)
eina: don't leak ressource due to the use of CreateThread on Windows.
author
Cedric BAIL
<c.bail@partner.samsung.com>
Fri, 20 Jun 2014 07:21:41 +0000
(09:21 +0200)
committer
Cedric BAIL
<c.bail@partner.samsung.com>
Fri, 20 Jun 2014 07:47:06 +0000
(09:47 +0200)
src/lib/eina/eina_thread.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_thread.c
b/src/lib/eina/eina_thread.c
index
a5616e9
..
b8290cb
100644
(file)
--- a/
src/lib/eina/eina_thread.c
+++ b/
src/lib/eina/eina_thread.c
@@
-207,7
+207,7
@@
_eina_thread_create(Eina_Thread *t,
tw->data = (void *)data;
tw->tls_keys = NULL;
- tw->thread =
CreateThread
(NULL, 0, _eina_thread_win32_cb, tw, 0, NULL);
+ tw->thread =
(HANDLE)_beginthreadex
(NULL, 0, _eina_thread_win32_cb, tw, 0, NULL);
if (!tw->thread) goto on_error;
/* affinity is an hint, if we fail, we continue without */