#include <pthread.h>
#include <unistd.h>
#include <assert.h>
#include "core/debug.cpp"
#include "core/thread.cpp"
#include "mem/memory.cpp"
#include "mem/alloc.cpp"
Go to the source code of this file.
Compounds | |
class | myThread |
Functions | |
int | main (void) |
|
Definition at line 52 of file debug_test.cpp. 00053 { 00054 myThread *th_test; 00055 int i = 2; 00056 char *j; 00057 agent_new(&j); 00058 *j = 'a'; 00059 debug2_("i", i, LOG_NO); 00060 debug2_("j", *j, LOG_NO); 00061 agent_zap(j); 00062 agent_malloc(&j, sizeof(char)); 00063 *j = 'b'; 00064 debug2_("j after malloc", *j, LOG_NO); 00065 00066 agent_println("creating thread"); 00067 agent_new(&th_test); 00068 th_test->Start(j); 00069 agent_println("destroying thread"); 00070 agent_free((void *)j); 00071 agent_zap(th_test); 00072 return 0; 00073 } |