Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #6174
| Path | csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Bonita Montero <Bonita.Montero@gmail.com> |
| Newsgroups | comp.programming.threads |
| Subject | Re: std::system_error of std::call_once |
| Date | Thu, 17 Dec 2020 13:47:23 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 13 |
| Message-ID | <rrfk0t$bhs$1@dont-email.me> (permalink) |
| References | <986b2c93-bdd0-48df-85b3-f6c534334c22n@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Thu, 17 Dec 2020 12:47:25 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="7d3bb70c6ba1cc26fd67781001fe657f"; logging-data="11836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KNXGPqnyo3dML4zKxWU5S6u3dagCFkKA=" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
| Cancel-Lock | sha1:/At79iylAR7+V5kDjzc9J21i2j4= |
| In-Reply-To | <986b2c93-bdd0-48df-85b3-f6c534334c22n@googlegroups.com> |
| Content-Language | de-DE |
| Xref | csiph.com comp.programming.threads:6174 |
Show key headers only | View raw
Am 17.12.2020 um 07:09 schrieb yuan lu: > When i use std::call_once in Linux version 2.6.36,it makes an error: > terminate called after throwing an instance of 'std::system_error' > what(): Unknown error -1 > Aborted Then an exception happened in a thread which isn't caught. I think call_once is specified to throw an exception because that might be thrown also when you enter a critical secton protected by a mutex; and call_once potects this once_flax with a mutex for sure. So there are two potential ways in which this exception might have thrown: by locking that mutex or other code which is inside the function-object you call.
Back to comp.programming.threads | Previous | Next — Previous in thread | Find similar | Unroll thread
std::system_error of std::call_once yuan lu <luqk1127@gmail.com> - 2020-12-16 22:09 -0800 Re: std::system_error of std::call_once Bonita Montero <Bonita.Montero@gmail.com> - 2020-12-17 13:47 +0100
csiph-web