Ticket #44 (closed improvement: resolved)

Opened 3 years ago

Last modified 2 years ago

pc::sync::stack should provide public interface for protector

Reported by: niam Owned by: niam
Priority: normal Milestone: 0.12.0
Component: Version:
Severity: feature Keywords:
Cc:

Description

pc::sync::stack should provide public interface for protector to provide easy tool for locking the stack using existing section lock instance.
As follows:

section keeper;
{

pc::sync::stack::protector(keeper);

}

on entering the block 'keeper' becomes locked, on stack unwinding 'keeper' becomes unlocked.

Change History

comment:1 Changed 3 years ago by hg

resolved issue #44: pc::sync::protector is a public interface that wraps pc::(process|thread)::section (changeset: 1161:636acc108cd9)

Note: See TracTickets for help on using tickets.