diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-02-01 22:11:12 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-02-01 22:11:46 +0800 |
commit | d5f016da4ef56592ad3ab9af64a72f94b6012f97 (patch) | |
tree | 9b67ad5e30aa5882ec59ffd5b6e3c3f859a4be80 | |
parent | 849877dc93587e2114731997357b9076e020a354 (diff) |
Pass the st context to st_manager->{lock,unlock}_resource.
The st manager might be interested in which context is using the
resource.
-rw-r--r-- | st_api.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -309,9 +309,9 @@ struct st_manager * can lengthen the lifetime of the data structure, it is valid only until * unlocked. */ - void *(*lock_resource)(struct st_manager *smapi, + void *(*lock_resource)(struct st_manager *smapi, struct st_context *stctx, enum st_manager_resource_type type, void *res); - void (*unlock_resource)(struct st_manager *smapi, + void (*unlock_resource)(struct st_manager *smapi, struct st_context *stctx, enum st_manager_resource_type type, void *res); }; |