#endif
#endif
+/** User defined callback type */
+typedef void (*Hook)(void *);
+
/** Bulk storage large enough for both pointers or integers. */
typedef void * iptr_t;
typedef unsigned char sigbit_t; /**< Type for signal bits. */
typedef unsigned char sigmask_t; /**< Type for signal masks. */
+/**
+ * Signal structure
+ */
+typedef struct Signal
+{
+ sigmask_t wait; /**< Signals the process is waiting for */
+ sigmask_t recv; /**< Received signals */
+} Signal;
/**
* \name Standard type definitions.
do { (void)(&(var) == (type *)0); } while(0)
#endif
+/**
+ * Prevent the compiler from optimizing access to the variable \a x, enforcing
+ * a refetch from memory. This also forbid from reordering successing instances
+ * of ACCESS_SAFE().
+ */
+#define ACCESS_SAFE(x) (*(volatile typeof(x) *)&(x))
+
#endif /* BERTOS_COMPILER_H */