kerneltest/e32test/demandpaging/t_threadcreate.cpp
branchRCL_3
changeset 43 c1f20ce4abcf
parent 0 a41df078684a
child 44 3e88ff8f41d5
equal deleted inserted replaced
42:a179b74831c9 43:c1f20ce4abcf
   124 TInt ThreadFunc(TAny* aThreadInfo)
   124 TInt ThreadFunc(TAny* aThreadInfo)
   125 	{
   125 	{
   126 	SThreadPagedInfo& info = *(SThreadPagedInfo*)aThreadInfo;
   126 	SThreadPagedInfo& info = *(SThreadPagedInfo*)aThreadInfo;
   127 	RHeap& heap = User::Heap();
   127 	RHeap& heap = User::Heap();
   128 	RChunk chunk;
   128 	RChunk chunk;
   129 	chunk.SetHandle(heap.ChunkHandle());
   129 	chunk.SetHandle(((TestHybridHeap&) heap).ChunkHandle());
   130 	info.iHeapPaged = chunk.IsPaged();
   130 	info.iHeapPaged = chunk.IsPaged();
   131 	gStackPtr = (TUint8*)&chunk;
   131 	gStackPtr = (TUint8*)&chunk;
   132 	RDebug::Printf("&chunk %x",&chunk);
   132 	RDebug::Printf("&chunk %x",&chunk);
   133 	gSem1.Signal();
   133 	gSem1.Signal();
   134 	gSem2.Wait();
   134 	gSem2.Wait();