Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / metadata / property-bag.c
index 28e81138065cf0cb3273ee14b4740dbb32455e20..48580e3e3c48b0fa8e6fd3039768d930c4cc0b2e 100644 (file)
@@ -1,6 +1,6 @@
-
-/*
- * property-bag.c: Linearizable property bag.
+/**
+ * \file
+ * Linearizable property bag.
  *
  * Authors:
  *   Rodrigo Kumpera (kumpera@gmail.com)
 #include <mono/utils/atomic.h>
 #include <mono/utils/mono-membar.h>
 
+/*
+ * mono_property_bag_get:
+ *
+ *   Return the value of the property with TAG or NULL.
+ * This doesn't take any locks.
+ */
 void*
 mono_property_bag_get (MonoPropertyBag *bag, int tag)
 {
@@ -23,6 +29,15 @@ mono_property_bag_get (MonoPropertyBag *bag, int tag)
        return NULL;
 }
 
+/*
+ * mono_property_bag_add:
+ *
+ *   Store VALUE in the property bag. Return the previous value
+ * with the same tag, or NULL. VALUE should point to a structure
+ * extending the MonoPropertyBagItem structure with the 'tag'
+ * field set.
+ * This doesn't take any locks.
+ */
 void*
 mono_property_bag_add (MonoPropertyBag *bag, void *value)
 {