Navigation


Changeset 7:e5af94b04946 in freeDiameter for libfreeDiameter/dictionary.c


Ignore:
Timestamp:
Sep 4, 2009, 6:05:25 PM (15 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added dispatch module and tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfreeDiameter/dictionary.c

    r1 r7  
    410410       
    411411        /* Unlink all elements from the dispatch list; they will be freed when callback is unregistered */
     412        CHECK_POSIX_DO( pthread_rwlock_wrlock(&fd_disp_lock), /* continue */ );
    412413        while (!FD_IS_LIST_EMPTY(&obj->disp_cbs)) {
    413414                fd_list_unlink( obj->disp_cbs.next );
    414415        }
     416        CHECK_POSIX_DO( pthread_rwlock_unlock(&fd_disp_lock), /* continue */ );
    415417       
    416418        /* Last, destroy the object */
Note: See TracChangeset for help on using the changeset viewer.