Changeset cb124fc6
- Timestamp:
- Oct 29, 2012, 11:04:56 PM (10 years ago)
- Branches:
- master
- Children:
- 0792d99
- Parents:
- c748e8a
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/26/12 01:57:33)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (10/29/12 23:04:56)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rc748e8a rcb124fc6 100 100 101 101 g->interrupt_count = 0; 102 #if GLIB_CHECK_VERSION(2, 31, 0) 103 g_mutex_init(&g->interrupt_lock); 104 #else 102 105 g->interrupt_lock = g_mutex_new(); 106 #endif 103 107 } 104 108 … … 901 905 static GMutex *owl_global_get_interrupt_lock(owl_global *g) 902 906 { 907 #if GLIB_CHECK_VERSION(2, 31, 0) 908 return &g->interrupt_lock; 909 #else 903 910 return g->interrupt_lock; 911 #endif 904 912 } 905 913 -
owl.h
r219f52c rcb124fc6 596 596 char *kill_buffer; 597 597 int interrupt_count; 598 #if GLIB_CHECK_VERSION(2, 31, 0) 599 GMutex interrupt_lock; 600 #else 598 601 GMutex *interrupt_lock; 602 #endif 599 603 } owl_global; 600 604
Note: See TracChangeset
for help on using the changeset viewer.