Changeset b3f8fb7 in mainline for kernel/generic/include/synch
- Timestamp:
- 2007-01-28T13:25:49Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e8c1a5
- Parents:
- 1ba41c5
- Location:
- kernel/generic/include/synch
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/synch/futex.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <typedefs.h>40 39 #include <synch/waitq.h> 41 40 #include <genarch/mm/page_ht.h> -
kernel/generic/include/synch/mutex.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <typedefs.h>40 39 #include <synch/semaphore.h> 41 40 #include <synch/synch.h> -
kernel/generic/include/synch/rwlock.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <typedefs.h>40 39 #include <synch/mutex.h> 41 40 #include <synch/synch.h> -
kernel/generic/include/synch/semaphore.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <typedefs.h>40 39 #include <synch/waitq.h> 41 40 #include <synch/synch.h> … … 46 45 47 46 #define semaphore_down(s) \ 48 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NONE)47 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) 49 48 #define semaphore_trydown(s) \ 50 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NON_BLOCKING)51 #define semaphore_down_timeout(s, usec) \52 _semaphore_down_timeout((s), (usec),SYNCH_FLAGS_NONE)49 _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NON_BLOCKING) 50 #define semaphore_down_timeout(s, usec) \ 51 _semaphore_down_timeout((s), (usec), SYNCH_FLAGS_NONE) 53 52 54 53 extern void semaphore_initialize(semaphore_t *s, int val); -
kernel/generic/include/synch/spinlock.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <typedefs.h>40 39 #include <preemption.h> 41 40 #include <atomic.h> … … 98 97 CS_LEAVE_BARRIER(); 99 98 100 atomic_set(&sl->val, 0);99 atomic_set(&sl->val, 0); 101 100 preemption_enable(); 102 101 } … … 110 109 #define SPINLOCK_INITIALIZE(name) 111 110 112 #define spinlock_initialize(x, name)111 #define spinlock_initialize(x, name) 113 112 #define spinlock_lock(x) preemption_disable() 114 113 #define spinlock_trylock(x) (preemption_disable(), 1) -
kernel/generic/include/synch/waitq.h
r1ba41c5 rb3f8fb7 37 37 38 38 #include <arch/types.h> 39 #include <typedefs.h>40 39 #include <synch/spinlock.h> 41 40 #include <synch/synch.h> … … 59 58 60 59 #define waitq_sleep(wq) \ 61 waitq_sleep_timeout((wq), SYNCH_NO_TIMEOUT,SYNCH_FLAGS_NONE)60 waitq_sleep_timeout((wq), SYNCH_NO_TIMEOUT, SYNCH_FLAGS_NONE) 62 61 63 62 extern void waitq_initialize(waitq_t *wq); … … 68 67 extern void waitq_wakeup(waitq_t *wq, bool all); 69 68 extern void _waitq_wakeup_unsafe(waitq_t *wq, bool all); 70 extern void waitq_interrupt_sleep(thread_t *t);71 69 72 70 #endif
Note:
See TracChangeset
for help on using the changeset viewer.