mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-19 10:32:02 -05:00
- Return an error if appropriate from start_threads_.
- Cast arguments to pthread_create as needed. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@1220 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
db8c637632
commit
52a315dc8e
@ -20,11 +20,11 @@ int start_threads_(int *ndevin, int *ndevout, short y1[], short y2[],
|
|||||||
int iret1,iret2,iret3;
|
int iret1,iret2,iret3;
|
||||||
int iarg1=1, iarg2=2, iarg3=3;
|
int iarg1=1, iarg2=2, iarg3=3;
|
||||||
|
|
||||||
/* snd_pcm_start */
|
iret1 = pthread_create(&thread1,NULL,
|
||||||
// printf("start_threads: creating thread for a2d\n");
|
(void *)a2d_,&iarg1);
|
||||||
iret1 = pthread_create(&thread1,NULL,a2d_,&iarg1);
|
iret2 = pthread_create(&thread2,NULL,
|
||||||
// printf("start_threads: creating thread for decode1_\n");
|
(void *)decode1_,&iarg2);
|
||||||
iret2 = pthread_create(&thread2,NULL,decode1_,&iarg2);
|
iret3 = pthread_create(&thread3,NULL,
|
||||||
// printf("start_threads: creating thread for recvpkt_\n");
|
(void *)recvpkt_,&iarg3);
|
||||||
iret3 = pthread_create(&thread3,NULL,recvpkt_,&iarg3);
|
return(iret1 | iret2 | iret3);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user