summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcarlos <caiosignor@gmail.com>2020-04-22 14:00:27 -0300
committerJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-04-29 12:13:38 -0300
commit1b45bef1541858c118c96b6074489695c5023aec (patch)
treea00132cd37f0790741e5a9c8137cdc26e11c18b7
parentc8960c2006734faf5c8009de917cd8f39d1cda1d (diff)
default thread priority, and default stack size posix like
-rw-r--r--src/lib/eina/eina_inline_thread_win32.x6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/eina/eina_inline_thread_win32.x b/src/lib/eina/eina_inline_thread_win32.x
index 65a6aa7ed3..44fa74ac73 100644
--- a/src/lib/eina/eina_inline_thread_win32.x
+++ b/src/lib/eina/eina_inline_thread_win32.x
@@ -60,15 +60,13 @@ _eina_thread_set_priority(Eina_Thread_Priority prio, Eina_Thread *t)
60 case EINA_THREAD_URGENT: 60 case EINA_THREAD_URGENT:
61 nPriority = THREAD_PRIORITY_HIGHEST; 61 nPriority = THREAD_PRIORITY_HIGHEST;
62 break; 62 break;
63 case EINA_THREAD_NORMAL:
64 nPriority = THREAD_PRIORITY_NORMAL;
65 break;
66 case EINA_THREAD_BACKGROUND: 63 case EINA_THREAD_BACKGROUND:
67 nPriority = THREAD_PRIORITY_BELOW_NORMAL; 64 nPriority = THREAD_PRIORITY_BELOW_NORMAL;
68 break; 65 break;
69 case EINA_THREAD_IDLE: 66 case EINA_THREAD_IDLE:
70 nPriority = THREAD_PRIORITY_IDLE; 67 nPriority = THREAD_PRIORITY_IDLE;
71 break; 68 break;
69 case EINA_THREAD_NORMAL:
72 default: 70 default:
73 nPriority = THREAD_PRIORITY_NORMAL; 71 nPriority = THREAD_PRIORITY_NORMAL;
74 break; 72 break;
@@ -91,7 +89,7 @@ _eina_thread_create(Eina_Thread *t, int affinity, void *(*func)(void *data), voi
91 89
92 thread_attr.lpThreadAttributes = &sec_attributes; 90 thread_attr.lpThreadAttributes = &sec_attributes;
93 91
94 thread_attr.dwStackSize = 4000; 92 thread_attr.dwStackSize = 2*1024*1024;
95 thread_attr.dwCreationFlags = 0; 93 thread_attr.dwCreationFlags = 0;
96 94
97 LPDWORD threadID; 95 LPDWORD threadID;