#18348 closed bug (fixed)
call_once function does not work
Reported by: | bhaible | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta5 |
Component: | System/libroot.so | Version: | R1/beta4 |
Keywords: | r1beta4-fixes | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
According to ISO C 23 section 7.28.2.1, "The call_once function uses the once_flag pointed to by flag to ensure that func is called exactly once, the first time the call_once function is called with that value of flag."
In Haiku r1beta4, after the first call to call_once, func possibly has not been called.
How to reproduce:
$ gcc -ggdb -Wall foo.c $ ./a.out Abort
Attachments (1)
Change History (4)
by , 20 months ago
comment:2 by , 20 months ago
Milestone: | Unscheduled → R1/beta5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Fixed in hrev56915.
Note:
See TracTickets
for help on using tickets.
test case