implemented proper refcounting using atomic operations

This commit is contained in:
Martin Willi
2006-07-28 09:45:18 +00:00
parent fe04e93a8b
commit f698448ea3
8 changed files with 79 additions and 6 deletions
+3
View File
@@ -227,6 +227,9 @@ struct policy_t {
*
* Get a new reference to this policy by increasing
* it's internal reference counter.
* Do not call get_ref or any other function until you
* already have a reference. Otherwise the object may get
* destroyed while calling get_ref(),
*
* @param this calling object
*/