/[pcre]/code/trunk/sljit/sljitUtils.c
ViewVC logotype

Diff of /code/trunk/sljit/sljitUtils.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 949 by zherczeg, Thu Mar 8 10:28:49 2012 UTC revision 951 by zherczeg, Thu Mar 15 07:15:02 2012 UTC
# Line 30  Line 30 
30    
31  #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR) || (defined SLJIT_UTIL_GLOBAL_LOCK && SLJIT_UTIL_GLOBAL_LOCK)  #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR) || (defined SLJIT_UTIL_GLOBAL_LOCK && SLJIT_UTIL_GLOBAL_LOCK)
32    
33  #ifdef _WIN32  #if (defined SLJIT_SINGLE_THREADED && SLJIT_SINGLE_THREADED)
34    
35    #if (defined SLJIT_EXECUTABLE_ALLOCATOR && SLJIT_EXECUTABLE_ALLOCATOR)
36    
37    static SLJIT_INLINE void allocator_grab_lock(void)
38    {
39            // Always successful.
40    }
41    
42    static SLJIT_INLINE void allocator_release_lock(void)
43    {
44            // Always successful.
45    }
46    
47    #endif /* SLJIT_EXECUTABLE_ALLOCATOR */
48    
49    #if (defined SLJIT_UTIL_GLOBAL_LOCK && SLJIT_UTIL_GLOBAL_LOCK)
50    
51    SLJIT_API_FUNC_ATTRIBUTE void SLJIT_CALL sljit_grab_lock(void)
52    {
53            // Always successful.
54    }
55    
56    SLJIT_API_FUNC_ATTRIBUTE void SLJIT_CALL sljit_release_lock(void)
57    {
58            // Always successful.
59    }
60    
61    #endif /* SLJIT_UTIL_GLOBAL_LOCK */
62    
63    #elif defined(_WIN32) /* SLJIT_SINGLE_THREADED */
64    
65  #include "windows.h"  #include "windows.h"
66    

Legend:
Removed from v.949  
changed lines
  Added in v.951

  ViewVC Help
Powered by ViewVC 1.1.5