Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #727 (closed defect: fixed)

Opened 10 months ago

Last modified 8 months ago

Thread.setLocal docs miss information

Reported by: mandel Assigned to: sean
Priority: normal Milestone: Documentation
Component: Core Functionality Version: 0.99.2 Don
Keywords: Cc:

Description (Last modified by mandel)

The current comment in the api docs to Thread.setLocal reads:

Stores the supplied value in the specified location.
It is assumed that any key passed to this function is valid.

But it should contain information that key is an index to an array of size void*[64].

This gives vital information about

- what valid keys are

- what will happen if the key is invalid (crash)

- the access speed (it's no AA, O(1))

proposal:

Stores the supplied value at position key in an array of void*[64].

Change History

11/04/07 18:15:49 changed by mandel

  • description changed.

11/12/07 06:17:35 changed by larsivi

  • milestone set to Documentation.

01/14/08 21:02:12 changed by sean

  • status changed from new to closed.
  • resolution set to fixed.

(In [3096]) Improved the documentation for Thread.get/setLocal a bit. This closes #727.