Deleted Added
full compact
barrier.h (178529) barrier.h (178546)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

28#define _BARRIER_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31
32/*
33 * APIs for the barrier synchronization primitive.
34 */
35
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

28#define _BARRIER_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31
32/*
33 * APIs for the barrier synchronization primitive.
34 */
35
36#if defined(sun)
36#include <synch.h>
37#include <synch.h>
38#else
39#include <semaphore.h>
40typedef sem_t sema_t;
41#endif
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42typedef struct barrier {
43 pthread_mutex_t bar_lock; /* protects bar_numin */
44 int bar_numin; /* current number of waiters */

--- 13 unchanged lines hidden ---
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47typedef struct barrier {
48 pthread_mutex_t bar_lock; /* protects bar_numin */
49 int bar_numin; /* current number of waiters */

--- 13 unchanged lines hidden ---