Contiki 3.x
Typedefs | Functions
synchronization.h File Reference

    Synchronization primitives for Cortex-M3/M4 processors.
More...

#include <stdint.h>
#include "core_cmInstr.h"

Go to the source code of this file.

Typedefs

typedef volatile uint8_t lock_t
 Lock variable typedef.
 

Functions

void lock_acquire (lock_t *Lock_Variable)
 Blocking access to lock variable.
 
int lock_try_acquire (lock_t *Lock_Variable)
 Non-blocking access to lock variable.
 
void lock_release (lock_t *Lock_Variable)
 Release a lock after having acquired it using lock_acquire or lock_try_acquire. More...
 

Detailed Description

    Synchronization primitives for Cortex-M3/M4 processors.
Author
Joakim Gebart joaki.nosp@m.m.ge.nosp@m.bart@.nosp@m.eist.nosp@m.ec.se

Definition in file synchronization.h.

Function Documentation

void lock_release ( lock_t Lock_Variable)

Release a lock after having acquired it using lock_acquire or lock_try_acquire.

Definition at line 89 of file synchronization.c.

Referenced by _sbrk_r().