Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #6174
| From | Bonita Montero <Bonita.Montero@gmail.com> |
|---|---|
| Newsgroups | comp.programming.threads |
| Subject | Re: std::system_error of std::call_once |
| Date | 2020-12-17 13:47 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <rrfk0t$bhs$1@dont-email.me> (permalink) |
| References | <986b2c93-bdd0-48df-85b3-f6c534334c22n@googlegroups.com> |
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