mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-20 02:38:43 +00:00
Define ATOMIC_LONG_INIT() in the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
f83f88912d
commit
2bb46d5516
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300725
@ -35,6 +35,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <machine/atomic.h>
|
||||
|
||||
#define ATOMIC_LONG_INIT(x) { .counter = (x) }
|
||||
|
||||
typedef struct {
|
||||
volatile long counter;
|
||||
} atomic_long_t;
|
||||
|
Loading…
Reference in New Issue
Block a user