C++ pThread 传入参数问题

我新建了两个线程,并往里面传入string类型的参数,但是无论我怎么写,在运行之后,传入的参数都会变成一样的,求大佬们解答一下,这是怎么回事啊
全部代码如下:

 #include <iostream>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <string>
#include <sstream>
using namespace std;
#define _THREAD_NUM 2
#define LINK_MULTYPE(a,b) a##b

void* Debug(void* args)
{   
    while(true)
    {
        cout<<*((string*)args)<<endl;
        sleep(1);
    }
}

int main()
{
    bool IsStart = true;
    pthread_t thid[_THREAD_NUM];
    for(int i =0;i<_THREAD_NUM;i++)
    {
        // stringstream s;
        // s<<"Thread:"<<i;
        // string str = s.str();
        // cout<<i<<endl;

        if(IsStart){
            string str = "Thread:1";
            pthread_create(&thid[i],NULL,Debug,(void*)&(str));
            IsStart = false;
        }else
        {
            string str1 = "Thread:2";
            pthread_create(&thid[i],NULL,Debug,(void*)&(str1));
        }
    }
    cout<<"hello world!!!"<<endl;
    getchar();
    pthread_exit(NULL);
    return 0;
}

运行结果:
图片说明

你的thread1就运行了一次 之后你设置IsStart=false 然后就一直运行thread2了 参数 没问题啊