zig/lib/std
Igor Anić 9947b47d80 stdlib: Thread.Condition wake only if signaled
Previous implementation didn't check whether there are pending signals
after return from futex.wait. While it is ok for broadcast case it can
result in multiple wakeups when only one thread is signaled.
This implementation checks that there are pending signals before
returning from wait.
It is similar to the original implementation but the without initial
signal check, here we first go to the futex and then check for pending
signal.
2022-11-21 17:26:54 +01:00
..
atomic tests: Enable PPC64LE as a test target 2022-10-13 12:53:20 -07:00
build std.build: fix typo 2022-11-15 23:23:27 +02:00
c Merge pull request #13418 from ryanschneider/signal-alignment-13216 2022-11-09 17:36:40 +02:00
compress all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
crypto std.crypto.onetimeauth.ghash: faster GHASH on modern CPUs (#13566) 2022-11-17 13:07:07 +01:00
dwarf
event enable event loop for ios, tvos, and watchos 2022-10-13 13:33:45 +02:00
fmt
fs Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
hash std: re-enable auto hash test 2022-10-30 01:09:31 -07:00
heap Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
http std.http: fix typo 2022-10-06 21:22:20 +03:00
io
json
math Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
mem std.mem.Allocator: do not return undefined pointers from create 2022-11-16 01:12:27 +02:00
meta
net
os stdlib: make linux.PERF.TYPE non-exhaustive 2022-11-16 19:02:24 -05:00
rand
target Revert "x86" CPU model (not arch) back to "i386" 2022-11-06 13:39:03 +01:00
testing
Thread stdlib: Thread.Condition wake only if signaled 2022-11-21 17:26:54 +01:00
time
tz
unicode
valgrind
x x/os/Reactor: implement remove function (#13330) 2022-11-13 17:43:29 +02:00
zig Revert "x86" CPU model (not arch) back to "i386" 2022-11-06 13:39:03 +01:00
array_hash_map.zig
array_list.zig
ascii.zig Fix deprecation docs for isAlpha and isCntrl 2022-10-29 15:22:05 -04:00
atomic.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
base64.zig
bit_set.zig
bounded_array.zig
buf_map.zig
buf_set.zig
build.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
builtin.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
c.zig pthread_sigmask 2022-11-13 17:36:56 +02:00
child_process.zig
coff.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
compress.zig
comptime_string_map.zig
crypto.zig crypto.salsa20: make the number of rounds a comptime parameter (#13442) 2022-11-06 23:52:41 +01:00
cstr.zig
debug.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
dwarf.zig
dynamic_library.zig
elf.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
enums.zig
event.zig
fifo.zig
fmt.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
fs.zig fs: Some NAME_MAX/MAX_NAME_BYTES improvements 2022-10-29 14:30:46 -07:00
hash.zig
hash_map.zig
heap.zig Improve doc comments for two functions (#13456) 2022-11-05 22:55:50 +01:00
http.zig
io.zig coff: compile and link simple exit program on arm64 2022-11-05 10:15:01 +01:00
json.zig
leb128.zig
linked_list.zig
log.zig
macho.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
math.zig Implements std.math.sign for float vectors. 2022-11-12 15:41:55 +02:00
mem.zig Handle sentinel slices in std.mem.zeroes 2022-11-09 17:33:48 +02:00
meta.zig Merge pull request #13338 from Vexu/stage2-compile-errors 2022-11-04 16:04:31 +02:00
multi_array_list.zig std: avoid vector usage with the C backend 2022-11-01 20:38:37 -04:00
net.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
once.zig
os.zig std.os: take advantage of the freebsd's copy_file_range 2022-11-05 15:43:39 -04:00
packed_int_array.zig
pdb.zig pdb: make SuperBlock def public 2022-11-12 09:40:40 +01:00
priority_dequeue.zig
priority_queue.zig
process.zig process.zig: remove unused function getSelfExeSharedLibPaths 2022-11-16 18:51:11 -05:00
Progress.zig Revert recent std.Progress implementation changes 2022-10-18 18:53:44 -07:00
rand.zig
segmented_list.zig std.SegmentedList: fix compilation error 2022-10-13 13:57:20 +02:00
SemanticVersion.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
simd.zig all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
sort.zig
start.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
start_windows_tls.zig Merge pull request #13101 from alichraghi/o4 2022-11-05 02:34:24 -04:00
std.zig
target.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
testing.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
Thread.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
time.zig std.time: add microTimestamp() (#13327) 2022-11-02 23:20:19 +01:00
treap.zig
tz.zig
unicode.zig
valgrind.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
wasm.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
x.zig
zig.zig fix Nvptx backend outputing files at the top level of zig-cache 2022-11-16 18:49:04 -05:00