Skip to content

Commit 4ff3ea7

Browse files
committed
New issue from S. B. Tam: "§[time.zone.db] the specification uses the undefined term "thread-safe""
1 parent 35d3e2b commit 4ff3ea7

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

xml/issue4193.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version='1.0' encoding='utf-8' standalone='no'?>
2+
<!DOCTYPE issue SYSTEM "lwg-issue.dtd">
3+
4+
<issue num="4193" status="New">
5+
<title>&sect;[time.zone.db] the specification uses the undefined term "thread-safe"</title>
6+
<section><sref ref="[time.zone.db]"/></section>
7+
<submitter>S. B. Tam</submitter>
8+
<date>16 Jan 2025</date>
9+
<priority>99</priority>
10+
11+
<discussion>
12+
<p>
13+
<paper num="N5001"/> <sref ref="[time.zone.db.list]"/> p3:
14+
</p>
15+
<blockquote style="border-left: 3px solid #ccc;padding-left: 15px;">
16+
<p>
17+
<i>Synchronization</i>: This operation is thread-safe with respect to `reload_tzdb()`.
18+
</p>
19+
</blockquote>
20+
<p>
21+
<paper num="N5001"/> <sref ref="[time.zone.db.access]"/> p2:
22+
</p>
23+
<blockquote style="border-left: 3px solid #ccc;padding-left: 15px;">
24+
<p>
25+
<i>Synchronization</i>: It is safe to call this function from multiple threads at one time.
26+
</p>
27+
</blockquote>
28+
<p>
29+
<paper num="N5001"/> <sref ref="[time.zone.db.remote]"/> p3:
30+
</p>
31+
<blockquote style="border-left: 3px solid #ccc;padding-left: 15px;">
32+
<p>
33+
<i>Synchronization</i>: This function is thread-safe with respect to `get_tzdb_list().front()` and
34+
`get_tzdb_list().erase_after()`.
35+
</p>
36+
</blockquote>
37+
<p>
38+
The standard does not define what "thread-safe" means, which makes the meaning of these sentences unclear.
39+
Does it mean that "concurrent calls do not introduce data races", or does it additionally require a single
40+
total order on these operations? In either case, it should be specified clearly.
41+
</p>
42+
43+
</discussion>
44+
45+
<resolution>
46+
</resolution>
47+
48+
</issue>

0 commit comments

Comments
 (0)