Bug 4138 – Enable __thread storage class (TLS) on D1

Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2010-05-01T11:31:00Z
Last change time
2015-06-09T05:13:47Z
Keywords
patch
Assigned to
nobody
Creator
nfxjfg

Attachments

IDFilenameSummaryContent-TypeSize
617TLS_PATCH__thread on D1text/plain1897

Comments

Comment #0 by nfxjfg — 2010-05-01T11:31:18Z
Created attachment 617 __thread on D1 Enable the __thread storage class in D1. This enables D1 programs to optionally make use of thread local storage (TLS). Note that this also can ease porting D1 programs to D2. This doesn't break any existing D1 code, as identifiers starting with __ are compiler reserved. I appended a patch; it is embarrassingly simple.