Navigation


Changeset 691:78b665400097 in freeDiameter for libfdcore/p_sr.c


Ignore:
Timestamp:
Jan 20, 2011, 7:44:27 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Cleanup all pthread_cleanup_push / pop pairs so that pop is always called after push, or ASSERT(0) is some grave errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/p_sr.c

    r688 r691  
    117117}
    118118
    119 /* thread that handles messages expiring. The thread is started / stopped only when needed */
     119/* thread that handles messages expiring. The thread is started / cancelled only when needed */
    120120static void * sr_expiry_th(void * arg) {
    121121        struct sr_list * srlist = arg;
     
    184184        ; /* pthread_cleanup_pop sometimes expands as "} ..." and the label beofre this cause some compilers to complain... */
    185185        pthread_cleanup_pop( 1 );
     186        ASSERT(0); /* we have encountered a problem, maybe time to signal the framework to terminate? */
    186187        return NULL;
    187188}
Note: See TracChangeset for help on using the changeset viewer.