diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-28 03:25:31 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-28 03:25:31 +0000 |
commit | b66af67f2190b377a418b6fc4230838c257cc7d1 (patch) | |
tree | 2e59f5adbc29b22cf1c8fc9700958d91cccee4d1 /thread.c | |
parent | 0e41458700b19a696fe1197fdd10b2bc15ab9657 (diff) | |
download | ruby-b66af67f2190b377a418b6fc4230838c257cc7d1.tar.gz |
* thread.c (mutex_free, mutex_unlock): add qualifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2708,7 +2708,7 @@ thgroup_add(VALUE group, VALUE thread) #define GetMutexPtr(obj, tobj) \ Data_Get_Struct(obj, mutex_t, tobj) -static const char *mutex_unlock(mutex_t *mutex, rb_thread_t *th); +static const char *mutex_unlock(mutex_t *mutex, rb_thread_t volatile *th); static void mutex_free(void *ptr) @@ -2717,7 +2717,7 @@ mutex_free(void *ptr) mutex_t *mutex = ptr; if (mutex->th) { /* rb_warn("free locked mutex"); */ - char *err = mutex_unlock(mutex, mutex->th); + const char *err = mutex_unlock(mutex, mutex->th); if (err) rb_bug("%s", err); } native_mutex_destroy(&mutex->lock); @@ -2918,7 +2918,7 @@ rb_mutex_lock(VALUE self) } static const char * -mutex_unlock(mutex_t *mutex, rb_thread_t *th) +mutex_unlock(mutex_t *mutex, rb_thread_t volatile *th) { const char *err = NULL; mutex_t *th_mutex; |