Click here to Skip to main content
15,887,214 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: pthread stupidity Pin
PIEBALDconsult4-Jun-22 5:34
mvePIEBALDconsult4-Jun-22 5:34 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 5:51
professionalGreg Utas4-Jun-22 5:51 
GeneralRe: pthread stupidity Pin
Randor 4-Jun-22 6:36
professional Randor 4-Jun-22 6:36 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 7:23
professionalGreg Utas4-Jun-22 7:23 
GeneralRe: pthread stupidity Pin
Mircea Neacsu4-Jun-22 7:57
Mircea Neacsu4-Jun-22 7:57 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 8:56
professionalGreg Utas4-Jun-22 8:56 
GeneralRe: pthread stupidity Pin
Mircea Neacsu4-Jun-22 9:26
Mircea Neacsu4-Jun-22 9:26 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 9:45
professionalGreg Utas4-Jun-22 9:45 
I start a native thread in my Thread constructor too, so maybe I'm not wise either! I need to think about your suggestion. Which is, if I understand correctly, to create the Thread object first and then invoke a Thread::run function to actually create the native thread. That sounds appealing, even though I dislike two-phase construction. There would also be a window in which the native thread could start to run before its handle got written into the Thread object. You'd think that window would be very tiny, but given how vigorously Windows and Linux context switch, I'd want to close it.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: pthread stupidity Pin
Mircea Neacsu4-Jun-22 10:22
Mircea Neacsu4-Jun-22 10:22 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 10:50
professionalGreg Utas4-Jun-22 10:50 
GeneralRe: pthread stupidity Pin
Randor 4-Jun-22 9:38
professional Randor 4-Jun-22 9:38 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 9:54
professionalGreg Utas4-Jun-22 9:54 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 7:29
professionalGreg Utas4-Jun-22 7:29 
GeneralRe: pthread stupidity Pin
Randor 4-Jun-22 7:37
professional Randor 4-Jun-22 7:37 
GeneralRe: pthread stupidity Pin
Greg Utas4-Jun-22 7:47
professionalGreg Utas4-Jun-22 7:47 
GeneralRe: pthread stupidity Pin
Paul Sanders (the other one)5-Jun-22 22:20
Paul Sanders (the other one)5-Jun-22 22:20 
GeneralRe: pthread stupidity Pin
Greg Utas5-Jun-22 23:26
professionalGreg Utas5-Jun-22 23:26 
GeneralRe: pthread stupidity Pin
Paul Sanders (the other one)6-Jun-22 1:15
Paul Sanders (the other one)6-Jun-22 1:15 
GeneralRe: pthread stupidity Pin
Greg Utas6-Jun-22 1:30
professionalGreg Utas6-Jun-22 1:30 
GeneralRe: pthread stupidity Pin
Paul Sanders (the other one)6-Jun-22 9:45
Paul Sanders (the other one)6-Jun-22 9:45 
JokeThe day physicists made the casino weep! Pin
Cp-Coder4-Jun-22 2:22
Cp-Coder4-Jun-22 2:22 
GeneralRe: The day physicists made the casino weep! Pin
OriginalGriff4-Jun-22 2:50
mveOriginalGriff4-Jun-22 2:50 
GeneralRe: The day physicists made the casino weep! Pin
theoldfool4-Jun-22 3:19
professionaltheoldfool4-Jun-22 3:19 
GeneralRe: The day physicists made the casino weep! Pin
Richard MacCutchan4-Jun-22 5:06
mveRichard MacCutchan4-Jun-22 5:06 
GeneralRe: The day physicists made the casino weep! Pin
Nelek4-Jun-22 6:51
protectorNelek4-Jun-22 6:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.