Rename GUARANTEE-THREAD-MUTEX-OWNED to ASSERT-THREAD-MUTEX-OWNED.
authorTaylor R Campbell <campbell@mumble.net>
Fri, 14 Nov 2014 04:18:27 +0000 (04:18 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Fri, 14 Nov 2014 04:20:12 +0000 (04:20 +0000)
src/runtime/runtime.pkg
src/runtime/thread.scm

index e3c817e87d9d033c080871d48210049a259739fe..94e67e8bb758b3312c1f8564bd3ee12686c3cf7c 100644 (file)
@@ -4999,6 +4999,7 @@ USA.
   (files "thread")
   (parent (runtime))
   (export ()
+         assert-thread-mutex-owned
          block-thread-events
          condition-type:no-current-thread
          condition-type:thread-dead
@@ -5015,7 +5016,6 @@ USA.
          deregister-timer-event
          detach-thread
          exit-current-thread
-         guarantee-thread-mutex-owned
          join-thread
          lock-thread-mutex
          make-thread-mutex
index 549509246d375e1722a80b7eaad96f5327ef7ad3..b517141484a7ee327ac6ed73cd6743d9e29d2b47 100644 (file)
@@ -1041,8 +1041,8 @@ USA.
   (if (not (thread-mutex? mutex))
       (error:wrong-type-argument mutex "thread-mutex" procedure)))
 
-(define (guarantee-thread-mutex-owned mutex #!optional caller)
-  (guarantee-thread-mutex mutex 'GUARANTEE-THREAD-MUTEX-OWNED)
+(define (assert-thread-mutex-owned mutex #!optional caller)
+  (guarantee-thread-mutex mutex 'ASSERT-THREAD-MUTEX-OWNED)
   (if (not (eq? (current-thread) (thread-mutex/owner mutex)))
       (if (default-object? caller)
          (error "Don't own mutex:" mutex)