LispWorks User Guide and Reference Manual > 32 The HCL Package

NextPrevUpTopContentsIndex

with-hash-table-locked

Macro
Summary

Evaluates code with a hash-table locked against modification by other threads.

Package

hcl

Signature

with-hash-table-locked hash-table &body body => results

Arguments

hash-table

A hash table.

body

Forms.

Values

results

The results of evaluating body .

Description

The macro with-hash-table-locked evaluates body with the hash table hash-table locked against modification by other threads. The current thread can modify hash-table .

with-hash-table-locked is useful not only for multiple accesses to the same table, but also when an access to the table must be consistent with some other operation, avoiding the need to make a separate lock,

See also

make-hash-table
modify-hash


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex