documented key :value is invalid for function fb-thread:make-mutex

Bug #1471240 reported by Jim Newton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Invalid
Undecided
Unassigned

Bug Description

Looking at the documentation at http://www.sbcl.org/1.0/manual/Mutex-Support.html#Mutex-Support
I see the following documentation for the make-mutex function

— Function: sb-thread:make-mutex &key name value
Create a mutex.

However when I try to call (sb-thread:make-mutex :value t)
I see that there is no such key available.
Slime tells me the valid keys are (name %owner).

What do I expect to happen? I expect (sb-thread:make-mutex :value t) to return a mutex whose value is t.

Revision history for this message
Jim Newton (jimka-issy) wrote :

I took a look at http://www.sbcl.org/manual/index.html#Threading
which claims the following.

Function: make-mutex [sb-thread] &key name %owner state
Create a mutex.

Nevertheless, my sbcl (which I updated and build a couple of weeks ago) does not have :state as a valid parameter to this function.

Revision history for this message
Stas Boukarev (stassats) wrote : Re: [Bug 1471240] Re: documented key :value is invalid for function fb-thread:make-mutex

Jim Newton <email address hidden> writes:

> I took a look at http://www.sbcl.org/manual/index.html#Threading
> which claims the following.
>
> Function: make-mutex [sb-thread] &key name %owner state
> Create a mutex.
>
> Nevertheless, my sbcl (which I updated and build a couple of weeks ago)
> does not have :state as a valid parameter to this function.
You do not have sb-thread compiled.
--
With best regards, Stas.

Changed in sbcl:
status: New → Invalid
Revision history for this message
Jim Newton (jimka-issy) wrote :

Do I have sb-thread compiled? Sorry, I don't know what the question means.
I have indeed recompiled sbcl to enable multithreading, and I do indeed have the package named :sb-thread available and loadable. Is either of those the answer to your question?

Jim

Revision history for this message
Stas Boukarev (stassats) wrote :

This option is only available if sb-thread is enabled. And it's a private option. And I just removed it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.