Adapt win32 specific code to current API

This commit is contained in:
Maarten Bosmans 2011-01-04 17:07:50 +01:00
parent 4f1d4044f8
commit 0ac0479534
3 changed files with 29 additions and 5 deletions

View file

@ -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);