dev9ghzdrk: pthread_create returns status, not thread handle

This commit is contained in:
Jannik Vogel 2019-03-10 02:57:54 +01:00 committed by lightningterror
parent 7354c1fa0d
commit 7982e3abfe
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void InitNet(NetAdapter* ad)
int max_prio_for_policy = 0;
rx_thread = pthread_create(&rx_thread, NULL, NetRxThread, NULL);
int ret = pthread_create(&rx_thread, NULL, NetRxThread, NULL);
pthread_attr_init(&thAttr);
pthread_attr_getschedpolicy(&thAttr, &policy);
max_prio_for_policy = sched_get_priority_max(policy);