uatomic/x86: Remove redundant memory barriers
[urcu.git] / src / urcu-die.h
CommitLineData
acdb82a2
MJ
1// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
4a6d7378
MD
5#ifndef _URCU_DIE_H
6#define _URCU_DIE_H
7
8/*
4a6d7378 9 * Userspace RCU library unrecoverable error handling
4a6d7378
MD
10 */
11
12#include <stdlib.h>
13#include <stdio.h>
14#include <string.h>
15
16#define urcu_die(cause) \
17do { \
18 fprintf(stderr, "(" __FILE__ ":%s@%u) Unrecoverable error: %s\n", \
19 __func__, __LINE__, strerror(cause)); \
20 abort(); \
21} while (0)
22
23#endif /* _URCU_DIE_H */
This page took 0.040153 seconds and 4 git commands to generate.