Deleted Added
full compact
thr_getprio.c (13546) thr_getprio.c (22315)
1/*
2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 43 unchanged lines hidden (view full) ---

52 while (pthread_p != NULL && pthread_p != pthread) {
53 /* Point to the next thread: */
54 pthread_p = pthread_p->nxt;
55 }
56
57 /* Check if the thread pointer is NULL: */
58 if (pthread == NULL || pthread_p == NULL) {
59 /* Return an invalid argument error: */
1/*
2 * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 43 unchanged lines hidden (view full) ---

52 while (pthread_p != NULL && pthread_p != pthread) {
53 /* Point to the next thread: */
54 pthread_p = pthread_p->nxt;
55 }
56
57 /* Check if the thread pointer is NULL: */
58 if (pthread == NULL || pthread_p == NULL) {
59 /* Return an invalid argument error: */
60 _thread_seterrno(_thread_run, EINVAL);
60 errno = EINVAL;
61 rval = -1;
62 } else {
63 /* Get the thread priority: */
64 rval = pthread->pthread_priority;
65 }
66
67 /* Unblock signals: */
68 _thread_kern_sig_unblock(status);
69
70 /* Return the thread priority or an error status: */
71 return (rval);
72}
73#endif
61 rval = -1;
62 } else {
63 /* Get the thread priority: */
64 rval = pthread->pthread_priority;
65 }
66
67 /* Unblock signals: */
68 _thread_kern_sig_unblock(status);
69
70 /* Return the thread priority or an error status: */
71 return (rval);
72}
73#endif