summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/thread-win32.c
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-01-04 17:07:50 +0100
committerMaarten Bosmans <mkbosmans@gmail.com>2011-02-17 11:58:22 +0100
commit0ac0479534d9cb6e4ef734eeb3a663f33a4f8ef3 (patch)
tree7326f1efbef7ecf59b717625097a47ad1c1385d4 /src/pulsecore/thread-win32.c
parent4f1d4044f8409ff29eeb7f97324daba496e40714 (diff)
Adapt win32 specific code to current API
Diffstat (limited to 'src/pulsecore/thread-win32.c')
-rw-r--r--src/pulsecore/thread-win32.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pulsecore/thread-win32.c b/src/pulsecore/thread-win32.c
index 0a1baa54..7d458b97 100644
--- a/src/pulsecore/thread-win32.c
+++ b/src/pulsecore/thread-win32.c
@@ -71,8 +71,9 @@ static DWORD WINAPI internal_thread_func(LPVOID param) {
return 0;
}
-pa_thread* pa_thread_new(pa_thread_func_t thread_func, void *userdata) {
+pa_thread* pa_thread_new(const char *name, pa_thread_func_t thread_func, void *userdata) {
pa_thread *t;
+ DWORD thread_id;
assert(thread_func);
@@ -80,7 +81,7 @@ pa_thread* pa_thread_new(pa_thread_func_t thread_func, void *userdata) {
t->thread_func = thread_func;
t->userdata = userdata;
- t->thread = CreateThread(NULL, 0, internal_thread_func, t, 0, NULL);
+ t->thread = CreateThread(NULL, 0, internal_thread_func, t, 0, &thread_id);
if (!t->thread) {
pa_xfree(t);