Changeset 5352 for trunk/module-cccam.c
- Timestamp:
- 06/03/11 13:56:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-cccam.c
r5347 r5352 462 462 while (cl->cc && cc->mode != CCCAM_MODE_SHUTDOWN && cs_trylock(&cc->lockcmd)) { 463 463 cs_debug_mask(D_TRACE, "%s trylock recv waiting", getprefix()); 464 cs_sleepms( 50);464 cs_sleepms(fast_rnd()); 465 465 } 466 466 if (!cl->cc || cc->mode == CCCAM_MODE_SHUTDOWN) return -1; … … 533 533 while (cl->cc && cc->mode != CCCAM_MODE_SHUTDOWN && cs_trylock(&cc->lockcmd)) { //We need this because cc_cmd_send is called from cccshare 534 534 cs_debug_mask(D_TRACE, "%s trylock send waiting", getprefix()); 535 cs_sleepms( 50);535 cs_sleepms(fast_rnd()); 536 536 } 537 537 if (!cl->cc || cc->mode == CCCAM_MODE_SHUTDOWN) return -1; … … 1108 1108 while (cs_trylock(&cc->cards_busy)) { 1109 1109 cs_debug_mask(D_TRACE, "%s trylock send_ecm cards waiting", getprefix()); 1110 cs_sleepms( 50);1110 cs_sleepms(fast_rnd()); 1111 1111 } 1112 1112 //forward_origin: … … 1360 1360 while (cs_trylock(&cc->cards_busy)) { 1361 1361 cs_debug_mask(D_TRACE, "trylock send_emm cards waiting", getprefix()); 1362 cs_sleepms( 50);1362 cs_sleepms(fast_rnd()); 1363 1363 } 1364 1364 … … 1780 1780 while (cs_trylock(&cc->cards_busy)) { 1781 1781 cs_debug_mask(D_TRACE, "%s trylock MSG_SRV_DATA cards waiting", getprefix()); 1782 cs_sleepms( 50);1782 cs_sleepms(fast_rnd()); 1783 1783 } 1784 1784 cc_free_cardlist(cc->cards, FALSE); … … 1897 1897 while (cs_trylock(&cc->cards_busy)) { 1898 1898 cs_debug_mask(D_TRACE, "%s trylock MSG_NEW_CARD cards waiting", getprefix()); 1899 cs_sleepms( 50);1899 cs_sleepms(fast_rnd()); 1900 1900 } 1901 1901 … … 1965 1965 while (cs_trylock(&cc->cards_busy)) { 1966 1966 cs_debug_mask(D_TRACE, "%s trylock MSG_CARD_REMOVED cards waiting", getprefix()); 1967 cs_sleepms( 50);1967 cs_sleepms(fast_rnd()); 1968 1968 } 1969 1969 cc_card_removed(cl, b2i(4, buf + 4)); … … 2020 2020 while (cs_trylock(&cc->cards_busy)) { 2021 2021 cs_debug_mask(D_TRACE, "%s trylock MSG_CW_NOK cards waiting", getprefix()); 2022 cs_sleepms( 50);2022 cs_sleepms(fast_rnd()); 2023 2023 } 2024 2024 … … 2175 2175 while (cs_trylock(&cc->cards_busy)) { 2176 2176 cs_debug_mask(D_TRACE, "%s trylock MSG_CW_ECM cards waiting", getprefix()); 2177 cs_sleepms( 50);2177 cs_sleepms(fast_rnd()); 2178 2178 } 2179 2179 cc->recv_ecmtask = -1; … … 2921 2921 while (cs_trylock(&cc->cards_busy)) { 2922 2922 cs_debug_mask(D_TRACE, "%s trylock cc_cli_connect cards waiting", getprefix()); 2923 cs_sleepms( 50);2923 cs_sleepms(fast_rnd()); 2924 2924 } 2925 2925
Note:
See TracChangeset
for help on using the changeset viewer.