c11_threads.c (44bf619d328827ce5eca6833fcd5c69f1592e578) | c11_threads.c (b36afad7ffe84071c2c6831936cc1c524bd1ca90) |
---|---|
1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at --- 37 unchanged lines hidden (view full) --- 46 47/* 48 * This thread should only ever be used for detach. 49 */ 50static int 51cthr_test_sleep_thr(void *arg) 52{ 53 for (;;) { | 1/* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at --- 37 unchanged lines hidden (view full) --- 46 47/* 48 * This thread should only ever be used for detach. 49 */ 50static int 51cthr_test_sleep_thr(void *arg) 52{ 53 for (;;) { |
54 sleep(1000); | 54 (void) sleep(1000); |
55 } 56 | 55 } 56 |
57 abort(); | 57 return (0); |
58} 59 60static void 61cthr_test_mtx_init(void) 62{ 63 mtx_t mtx; 64 65 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success); --- 319 unchanged lines hidden --- | 58} 59 60static void 61cthr_test_mtx_init(void) 62{ 63 mtx_t mtx; 64 65 VERIFY3S(mtx_init(&mtx, mtx_plain), ==, thrd_success); --- 319 unchanged lines hidden --- |