threaddata := findthreaddata(tm.GetCurrentThreadId);\r
if threaddata.lcorethread then raise exception.create('get/peek message cannot be used in the lcore thread');\r
message := threaddata.messagequeue;\r
threaddata := findthreaddata(tm.GetCurrentThreadId);\r
if threaddata.lcorethread then raise exception.create('get/peek message cannot be used in the lcore thread');\r
message := threaddata.messagequeue;\r