Changeset 5304 for trunk/oscam-http.c
- Timestamp:
- 05/28/11 01:47:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-http.c
r5298 r5304 1833 1833 cards = rcc->cards; 1834 1834 lock = &rcc->cards_busy; 1835 pthread_mutex_lock(lock);1835 cs_lock(lock); 1836 1836 } 1837 1837 } … … 2000 2000 unlock_sharelist(); 2001 2001 else if (lock) 2002 pthread_mutex_unlock(lock);2002 cs_unlock(lock); 2003 2003 2004 2004 } else { … … 3190 3190 if (cfg.resolve_gethostbyname) { 3191 3191 cs_debug_mask(D_TRACE, "WebIf: try resolving IP with 'gethostbyname'"); 3192 pthread_mutex_lock(&gethostbyname_lock);3192 cs_lock(&gethostbyname_lock); 3193 3193 struct hostent *rht; 3194 3194 struct sockaddr_in udp_sa; … … 3205 3205 } else { 3206 3206 cs_log("can't resolve %s", cfg.http_dyndns); } 3207 pthread_mutex_unlock(&gethostbyname_lock);3207 cs_unlock(&gethostbyname_lock); 3208 3208 3209 3209 } else { … … 3424 3424 3425 3425 // WebIf allows modifying many things. Thus, all pages except images/css are excpected to be non-threadsafe! 3426 if(pgidx != 19 && pgidx != 20) pthread_mutex_lock(&http_lock);3426 if(pgidx != 19 && pgidx != 20) cs_lock(&http_lock); 3427 3427 switch(pgidx) { 3428 3428 case 0: result = send_oscam_config(vars, ¶ms); break; … … 3451 3451 default: result = send_oscam_status(vars, ¶ms, 0); break; 3452 3452 } 3453 if(pgidx != 19 && pgidx != 20) pthread_mutex_unlock(&http_lock);3453 if(pgidx != 19 && pgidx != 20) cs_unlock(&http_lock); 3454 3454 3455 3455 if(result == NULL || !strcmp(result, "0") || strlen(result) == 0) send_error500(f);
Note:
See TracChangeset
for help on using the changeset viewer.