Changeset 5304 for trunk/module-cccshare.c
- Timestamp:
- 05/28/11 01:47:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccshare.c
r5299 r5304 17 17 LLIST *get_and_lock_sharelist() 18 18 { 19 // pthread_mutex_lock(&cc_shares_lock);19 //cs_lock(&cc_shares_lock); 20 20 return reported_carddatas; 21 21 } … … 23 23 void unlock_sharelist() 24 24 { 25 // pthread_mutex_unlock(&cc_shares_lock);25 //cs_unlock(&cc_shares_lock); 26 26 } 27 27 … … 992 992 int32_t notlocked = 1; 993 993 while (rcc && rcc->cards && rcc->mode == CCCAM_MODE_NORMAL && 994 (notlocked= pthread_mutex_trylock(&rcc->cards_busy))) {994 (notlocked=cs_trylock(&rcc->cards_busy))) { 995 995 cs_debug_mask(D_TRACE, "trylock asking reader %s cards", rdr->label); 996 996 cs_sleepms(50); … … 1019 1019 } 1020 1020 } 1021 pthread_mutex_unlock(&rcc->cards_busy);1021 cs_unlock(&rcc->cards_busy); 1022 1022 } 1023 1023 else … … 1061 1061 void refresh_shares() 1062 1062 { 1063 // pthread_mutex_lock(&cc_shares_lock);1063 //cs_lock(&cc_shares_lock); 1064 1064 update_card_list(); 1065 // pthread_mutex_unlock(&cc_shares_lock);1065 //cs_unlock(&cc_shares_lock); 1066 1066 } 1067 1067 … … 1190 1190 1191 1191 cc_free_reported_carddata(reported_carddatas, NULL, 0); 1192 // pthread_mutex_unlock(&cc_shares_lock);1192 //cs_unlock(&cc_shares_lock); 1193 1193 //pthread_mutex_destroy(&cc_shares_lock); 1194 1194 }
Note:
See TracChangeset
for help on using the changeset viewer.