comparison libfdproto/messages.c @ 686:f83d9878bf66

Fixed in case of termination of several modules (before initialization completed)
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 19 Jan 2011 14:35:14 +0900
parents f198d16fa7f4
children 026802543f57
comparison
equal deleted inserted replaced
685:a0209539c044 686:f83d9878bf66
1106 return 0; 1106 return 0;
1107 } 1107 }
1108 1108
1109 1109
1110 /******************* End-to-end counter *********************/ 1110 /******************* End-to-end counter *********************/
1111 uint32_t fd_eteid; 1111 static uint32_t fd_eteid;
1112 pthread_mutex_t fd_eteid_lck = PTHREAD_MUTEX_INITIALIZER; 1112 static pthread_mutex_t fd_eteid_lck = PTHREAD_MUTEX_INITIALIZER;
1113 1113
1114 void fd_msg_eteid_init(void) 1114 void fd_msg_eteid_init(void)
1115 { 1115 {
1116 fd_eteid = ((uint32_t)time(NULL) << 20) | ((uint32_t)lrand48() & ( (1 << 20) - 1 )); 1116 fd_eteid = ((uint32_t)time(NULL) << 20) | ((uint32_t)lrand48() & ( (1 << 20) - 1 ));
1117 } 1117 }
"Welcome to our mercurial repository"