Message: Re: How to get thread id? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Note Re: How to get thread id?  

Forum: Multithreading
Re: Question How to get thread id? (Jungwook Shin)
Date: 10 Jan, 2014
From: Andrea Dotti <Andrea Dotti>

Hello, this is an update: as for version 10.0 the new namespace function has been fully implemented:

#include "G4Threading.hh"

void foo() {
     G4cout<<"Thread ID is: "<<G4Threading::G4GetThreadId() << G4endl;
}

Regards, Andrea

 Add Message Add Message
to: "Re: How to get thread id? "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews