]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/misc: improve HashTable_Free comments
authorVMware, Inc <>
Mon, 26 Jul 2010 18:27:45 +0000 (11:27 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Mon, 26 Jul 2010 18:27:45 +0000 (11:27 -0700)
Clearly spell out the difference between free and unsafe free.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/misc/hashTable.c

index 4b80ec40f70a326c1de9612af448dd8daccc08f3..5d11264e7a381b9996be72889194b8e045f34b26 100644 (file)
@@ -375,7 +375,8 @@ HashTable_Clear(HashTable *ht)  // IN/OUT:
  *
  * HashTable_Free --
  *
- *      Free the hash table skeleton.
+ *      Free the hash table skeleton. Do not call this if the hashTable is
+ *      atomic; use HashTable_FreeUnsafe and HEED THE RESTRICTIONS!
  *
  * Results:
  *      None.