| ... | ... | @@ -243,8 +243,9 @@ const Timestamp = struct { |
| 243 | 243 | {#header_close#} |
| 244 | 244 | {#header_open|Values#} |
| 245 | 245 | {#code_begin|exe|values#} |
| 246 | | const std = @import("std"); |
| 246 | // Top-level declarations are order-independent: |
| 247 | 247 | const warn = std.debug.warn; |
| 248 | const std = @import("std"); |
| 248 | 249 | const os = std.os; |
| 249 | 250 | const assert = std.debug.assert; |
| 250 | 251 | |
| ... | ... | @@ -6745,11 +6746,7 @@ pub fn build(b: *Builder) void { |
| 6745 | 6746 | {#header_open|Single Threaded Builds#} |
| 6746 | 6747 | <p>Zig has a compile option <code>--single-threaded</code> which has the following effects: |
| 6747 | 6748 | <ul> |
| 6748 | | <li>{#link|@atomicLoad#} is emitted as a normal load.</li> |
| 6749 | | <li>{#link|@atomicRmw#} is emitted as a normal memory load, modify, store.</li> |
| 6750 | | <li>{#link|@fence#} becomes a no-op.</li> |
| 6751 | | <li>Variables which have Thread Local Storage instead become globals. TODO thread local variables |
| 6752 | | are not implemented yet.</li> |
| 6749 | <li>Variables which have Thread Local Storage instead become globals.</li> |
| 6753 | 6750 | <li>The overhead of {#link|Coroutines#} becomes equivalent to function call overhead. |
| 6754 | 6751 | TODO: please note this will not be implemented until the upcoming Coroutine Rewrite</li> |
| 6755 | 6752 | <li>The {#syntax#}@import("builtin").single_threaded{#endsyntax#} becomes {#syntax#}true{#endsyntax#} |