Click here to Skip to main content
15,896,912 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CChildFrame in separate thread Pin
Jochen Arndt15-Jul-18 22:37
professionalJochen Arndt15-Jul-18 22:37 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu15-Jul-18 22:52
_Flaviu15-Jul-18 22:52 
GeneralRe: CChildFrame in separate thread Pin
Jochen Arndt15-Jul-18 23:21
professionalJochen Arndt15-Jul-18 23:21 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu16-Jul-18 0:36
_Flaviu16-Jul-18 0:36 
GeneralRe: CChildFrame in separate thread Pin
Jochen Arndt16-Jul-18 0:41
professionalJochen Arndt16-Jul-18 0:41 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu16-Jul-18 1:27
_Flaviu16-Jul-18 1:27 
GeneralRe: CChildFrame in separate thread Pin
Jochen Arndt16-Jul-18 2:49
professionalJochen Arndt16-Jul-18 2:49 
GeneralRe: CChildFrame in separate thread Pin
_Flaviu16-Jul-18 3:07
_Flaviu16-Jul-18 3:07 
QuestionTrace a CString Pin
_Flaviu14-Jul-18 22:26
_Flaviu14-Jul-18 22:26 
AnswerRe: Trace a CString Pin
Richard MacCutchan15-Jul-18 2:00
mveRichard MacCutchan15-Jul-18 2:00 
SuggestionRe: Trace a CString Pin
David Crow15-Jul-18 16:27
David Crow15-Jul-18 16:27 
GeneralRe: Trace a CString Pin
_Flaviu15-Jul-18 22:04
_Flaviu15-Jul-18 22:04 
SuggestionRe: Trace a CString Pin
David Crow16-Jul-18 1:48
David Crow16-Jul-18 1:48 
GeneralRe: Trace a CString Pin
tony.attwood@ntlworld.com5-May-23 6:00
tony.attwood@ntlworld.com5-May-23 6:00 
AnswerRe: Trace a CString Pin
Jochen Arndt15-Jul-18 23:12
professionalJochen Arndt15-Jul-18 23:12 
Questionmapping pthread id to custom id Pin
meerokh13-Jul-18 5:51
meerokh13-Jul-18 5:51 
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan13-Jul-18 20:48
mveRichard MacCutchan13-Jul-18 20:48 
GeneralRe: mapping pthread id to custom id Pin
meerokh14-Jul-18 0:24
meerokh14-Jul-18 0:24 
I am planning to have more variable in the struct e.g.
struct thread_data {
int  thread_id;
const char *message;
double result
};


Richard MacCutchan wrote:
And why do you need to map the real thread id to some other value?


The application in which i am creating pthreads is a simulation environment on top of which my actual thread scheduling library will execute so the each pthread act like virtual core. Each core(pthread) has its own work package queue from which it retrieves the package for execution and when it is empty it attempts to steal from other cores(via work stealing method). Every core has a package manager singleton class which is responsible for adding and getting the package from the queue. In order to access the other cores(using the singleton class) i need the mapping so that whenever each core access the package manager class (and its queue), it do based on the custom id.

I hope i explained it better this time
GeneralRe: mapping pthread id to custom id Pin
Richard MacCutchan14-Jul-18 3:36
mveRichard MacCutchan14-Jul-18 3:36 
QuestionHow to disable a HTML Input in c# Pin
Member 1219465611-Jul-18 15:50
Member 1219465611-Jul-18 15:50 
AnswerRe: How to disable a HTML Input in c# Pin
Bryian Tan11-Jul-18 17:30
professionalBryian Tan11-Jul-18 17:30 
Questionc++ - std :: map - Is my idea too dirty? Pin
User 1106097911-Jul-18 8:40
User 1106097911-Jul-18 8:40 
GeneralRe: c++ - std :: map - Is my idea too dirty? Pin
harold aptroot11-Jul-18 9:48
harold aptroot11-Jul-18 9:48 
PraiseRe: c++ - std :: map - Is my idea too dirty? Pin
User 1106097911-Jul-18 9:54
User 1106097911-Jul-18 9:54 
AnswerRe: c++ - std :: map - Is my idea too dirty? Pin
Richard MacCutchan11-Jul-18 19:44
mveRichard MacCutchan11-Jul-18 19:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.