Changeset 5620
- Timestamp:
- 07/13/11 01:08:31 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/csctapi/ifd_smartreader.c
r5619 r5620 192 192 193 193 smart_fastpoll(reader, TRUE); 194 cs_lock(&reader->sr_config->g_read_mutex);194 pthread_mutex_lock(&reader->sr_config->g_read_mutex); 195 195 state =(reader->sr_config->modem_status & 0x80) == 0x80 ? 0 : 2; 196 cs_unlock(&reader->sr_config->g_read_mutex);196 pthread_mutex_unlock(&reader->sr_config->g_read_mutex); 197 197 smart_fastpoll(reader, FALSE); 198 198 … … 218 218 219 219 while(total_read < size && dif.tv_sec < timeout_sec) { 220 cs_lock(&reader->sr_config->g_read_mutex);220 pthread_mutex_lock(&reader->sr_config->g_read_mutex); 221 221 222 222 while (reader->sr_config->g_read_buffer_size == 0 && dif.tv_sec < timeout_sec) -
trunk/oscam-http-helpers.c
r5618 r5620 848 848 void SSL_dyn_lock_function(int32_t mode, struct CRYPTO_dynlock_value *l, const char *file, int32_t line){ 849 849 if (mode & CRYPTO_LOCK) { 850 cs_ lock(&l->mutex);850 cs_writelock(&l->mutex); 851 851 } else { 852 cs_ unlock(&l->mutex);852 cs_writeunlock(&l->mutex); 853 853 } 854 854 // just to remove compiler warnings...
Note:
See TracChangeset
for help on using the changeset viewer.