Changeset 371 for trunk/include


Ignore:
Timestamp:
Oct 31, 2011, 9:42:22 PM (13 years ago)
Author:
katerina
Message:

Patch for ticket #265 (inotify support).

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/sh_files.h

    r367 r371  
    4646int sh_files_hle_reg (const char * str);
    4747
    48 /* Check for new files matching configured glob patterns.
     48/* Check for new files/dirs matching configured glob patterns.
    4949 */
    5050void sh_files_check_globPatterns();
     51
     52/* Check for new files (only) matching configured glob patterns.
     53 */
     54void sh_files_check_globFilePatterns();
    5155
    5256/* check the setup
  • trunk/include/sh_inotify.h

    r367 r371  
    4343                              int * class, unsigned long * check_mask);
    4444ssize_t sh_inotify_read(char * buffer, size_t count);
     45ssize_t sh_inotify_read_timeout(char * buffer, size_t count, int timeout);
    4546int sh_inotify_recheck_watches (sh_watches * watches, sh_watches * save);
    4647
  • trunk/include/sh_pthread.h

    r320 r371  
    3434                pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, &oldtype);  \
    3535                pthread_cleanup_push(sh_pthread_mutex_unlock, (void*)&(M));\
    36                 pthread_mutex_trylock(&(M));                               \
    37                 executeStack = 1
     36                if (0 == pthread_mutex_trylock(&(M))) {                    \
     37                  executeStack = 1
     38
     39#define SH_MUTEX_TRYLOCK_UNLOCK(M)                                         \
     40                }                                                          \
     41                pthread_cleanup_pop(executeStack);                         \
     42                pthread_setcanceltype(oldtype, NULL);                      \
     43        } while (0)
    3844
    3945#define SH_MUTEX_UNLOCK(M)                                                 \
Note: See TracChangeset for help on using the changeset viewer.