diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-01-28 11:54:38 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-01 16:30:37 -0500 |
commit | fd8ae31c74975c8499983c9831bff2b136b98434 (patch) | |
tree | 63440821ae1e15e5e097eb79006addfab0200ace /litmus/srp.c | |
parent | a0f243fd1d66c3499f88a690e485e94160ac1a8c (diff) |
fdso: supply object type to constructor and destructor methods
Passing the object type explicitly will enable generic lock constructors.
Diffstat (limited to 'litmus/srp.c')
-rw-r--r-- | litmus/srp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/litmus/srp.c b/litmus/srp.c index cb577598ce3e..4601b7dba812 100644 --- a/litmus/srp.c +++ b/litmus/srp.c | |||
@@ -108,7 +108,7 @@ static void srp_add_prio(struct srp* srp, struct srp_priority* prio) | |||
108 | } | 108 | } |
109 | 109 | ||
110 | 110 | ||
111 | static void* create_srp_semaphore(void) | 111 | static void* create_srp_semaphore(obj_type_t type) |
112 | { | 112 | { |
113 | struct srp_semaphore* sem; | 113 | struct srp_semaphore* sem; |
114 | 114 | ||
@@ -152,7 +152,7 @@ static noinline int open_srp_semaphore(struct od_table_entry* entry, void* __use | |||
152 | return ret; | 152 | return ret; |
153 | } | 153 | } |
154 | 154 | ||
155 | static void destroy_srp_semaphore(void* sem) | 155 | static void destroy_srp_semaphore(obj_type_t type, void* sem) |
156 | { | 156 | { |
157 | /* XXX invariants */ | 157 | /* XXX invariants */ |
158 | atomic_dec(&srp_objects_in_use); | 158 | atomic_dec(&srp_objects_in_use); |