On Saturday, 9 January 2016 at 17:30:47 UTC, tcak wrote:
I tried your code with a little addition as follows:
[code]
import core.sys.posix.pthread;
import std.string;
import std.stdio;
extern(C) int pthread_setname_np(pthread_t, const char*);
void main(){
pthread_setname_np(pthread_self(),
On Saturday, 9 January 2016 at 11:02:53 UTC, Keywan Ghadami wrote:
Hello, i am trying to the set the name of thread with:
import core.thread;
auto thisThread = Thread.getThis();
thisThread.name = "kiwi";
but GDB prints the name of the programm ("helloworld")
[Thread debugging u
Hello, i am trying to the set the name of thread with:
import core.thread;
auto thisThread = Thread.getThis();
thisThread.name = "kiwi";
but GDB prints the name of the programm ("helloworld")
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/li