mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
Adapt win32 specific code to current API
This commit is contained in:
parent
4f1d4044f8
commit
0ac0479534
3 changed files with 29 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue