[libc-commits] [PATCH] D79828: [libc] Add implementation of call_once from threads.h.

Fangrui Song via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed May 13 11:58:01 PDT 2020


MaskRay added a comment.

This is incorrect.

> Completion of an effective call to the call_once function synchronizes with all subsequent calls to the call_once function with the same value of flag.

Before the completion, the subsequent call should wait.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79828/new/

https://reviews.llvm.org/D79828





More information about the libc-commits mailing list