Changeset 454:f1484823cb4a in freeDiameter for freeDiameter/p_psm.c
- Timestamp:
- Jul 29, 2010, 4:11:12 PM (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/p_psm.c
r403 r454 184 184 TRACE_ENTRY("%p %d(%s)", peer, new_state, STATE_STR(new_state)); 185 185 CHECK_PARAMS( CHECK_PEER(peer) ); 186 fd_cpu_flush_cache(); 186 187 old = peer->p_hdr.info.runtime.pir_state; 187 188 if (old == new_state) … … 194 195 195 196 peer->p_hdr.info.runtime.pir_state = new_state; 197 fd_cpu_flush_cache(); 196 198 197 199 if (old == STATE_OPEN) { … … 251 253 { 252 254 /* Move to CLOSED state: failover messages, stop OUT thread, unlink peer from active list */ 255 fd_cpu_flush_cache(); 253 256 if (peer->p_hdr.info.runtime.pir_state != STATE_ZOMBIE) { 254 257 CHECK_FCT_DO( fd_psm_change_state(peer, STATE_CLOSED), /* continue */ ); … … 281 284 CHECK_PARAMS_DO( CHECK_PEER(peer), return ); 282 285 peer->p_hdr.info.runtime.pir_state = STATE_ZOMBIE; 286 fd_cpu_flush_cache(); 283 287 return; 284 288 } … … 306 310 /* The state machine starts in CLOSED state */ 307 311 peer->p_hdr.info.runtime.pir_state = STATE_CLOSED; 308 312 309 313 /* Wait that the PSM are authorized to start in the daemon */ 310 314 CHECK_FCT_DO( fd_psm_waitstart(), goto psm_end ); … … 709 713 peer->p_hdr.info.pi_diamid); 710 714 pthread_cleanup_pop(1); /* set STATE_ZOMBIE */ 715 fd_cpu_flush_cache(); 711 716 peer->p_psm = (pthread_t)NULL; 712 717 pthread_detach(pthread_self()); … … 742 747 CHECK_PARAMS( CHECK_PEER(peer) ); 743 748 749 fd_cpu_flush_cache(); 744 750 if (peer->p_hdr.info.runtime.pir_state != STATE_ZOMBIE) { 745 751 CHECK_FCT( fd_event_send(peer->p_events, FDEVP_TERMINATE, 0, reason) );
Note: See TracChangeset
for help on using the changeset viewer.