Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 553 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 552
Line 33... Line 33...
33
#include <typedefs.h>
33
#include <typedefs.h>
34
#include <preemption.h>
34
#include <preemption.h>
35
 
35
 
36
#ifdef CONFIG_SMP
36
#ifdef CONFIG_SMP
37
struct spinlock {
37
struct spinlock {
-
 
38
#ifdef CONFIG_DEBUG_SPINLOCK
-
 
39
    char *name;
-
 
40
#endif
38
    int val;
41
    int val;
39
};
42
};
40
 
43
 
41
extern void spinlock_initialize(spinlock_t *sl);
44
extern void spinlock_initialize(spinlock_t *sl, char *name);
42
extern void spinlock_lock(spinlock_t *sl);
45
extern void spinlock_lock(spinlock_t *sl);
43
extern int spinlock_trylock(spinlock_t *sl);
46
extern int spinlock_trylock(spinlock_t *sl);
44
extern void spinlock_unlock(spinlock_t *sl);
47
extern void spinlock_unlock(spinlock_t *sl);
45
 
48
 
46
#else
49
#else