Changeset 3ac5086 in mainline for kernel/generic/src/adt/cht.c
- Timestamp:
- 2012-11-24T02:08:55Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5d230a30
- Parents:
- d04e46e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/cht.c
rd04e46e r3ac5086 617 617 void cht_destroy(cht_t *h) 618 618 { 619 cht_destroy_unsafe(h); 620 621 /* You must clear the table of items. Otherwise cht_destroy will leak. */ 622 ASSERT(atomic_get(&h->item_cnt) == 0); 623 } 624 625 /** Destroys a successfully created CHT but does no error checking. */ 626 void cht_destroy_unsafe(cht_t *h) 627 { 619 628 /* Wait for resize to complete. */ 620 629 while (0 < atomic_get(&h->resize_reqs)) { … … 627 636 free(h->b); 628 637 h->b = NULL; 629 630 /* You must clear the table of items. Otherwise cht_destroy will leak. */631 ASSERT(atomic_get(&h->item_cnt) == 0);632 638 } 633 639
Note:
See TracChangeset
for help on using the changeset viewer.