Click here to Skip to main content
14,360,852 members

C / C++ / MFC

 
AnswerRe: C Programming Pin
Victor Nijegorodov22-Sep-18 0:35
memberVictor Nijegorodov22-Sep-18 0:35 
AnswerRe: C Programming Pin
CPallini23-Sep-18 22:44
mveCPallini23-Sep-18 22:44 
QuestionHow to deallocate memory allocated to a class instance Pin
meerokh21-Sep-18 6:58
membermeerokh21-Sep-18 6:58 
AnswerRe: How to deallocate memory allocated to a class instance Pin
Victor Nijegorodov21-Sep-18 9:30
memberVictor Nijegorodov21-Sep-18 9:30 
GeneralRe: How to deallocate memory allocated to a class instance Pin
meerokh21-Sep-18 12:27
membermeerokh21-Sep-18 12:27 
AnswerRe: How to deallocate memory allocated to a class instance Pin
Richard MacCutchan21-Sep-18 22:35
protectorRichard MacCutchan21-Sep-18 22:35 
AnswerRe: How to deallocate memory allocated to a class instance Pin
«_Superman_»23-Sep-18 23:16
professional«_Superman_»23-Sep-18 23:16 
GeneralRe: How to deallocate memory allocated to a class instance Pin
meerokh26-Sep-18 2:45
membermeerokh26-Sep-18 2:45 
Destructor is as follows.

WorkPackage::~WorkPackage(){
	if (Wp_localstack.local_stack != nullptr)
	{
		Stack::release(Wp_localstack.local_stack);
	}
}

and release() is follows.
void Stack::release(void * stack ){
	int core_id= coreNumber::getInstance()->getCoreID(); //Get the thread id which called the dtor and release 
		WPManagerProviderSingleton& singletonObj =
						WPManagerProviderSingleton::getInstance();
			WorkPackageManager &wpm = singletonObj.getWpmInstance(core_id);//Based on thread id, select the workpackage manager(every thread has its own manager) to deallocate the stack from its respective Memory pool
			wpm.PerThreadMemPool.DeAllocate(stack);
}

AnswerRe: What are Destructors in Object-Oriented Programming Pin
David Crow21-Sep-18 3:39
memberDavid Crow21-Sep-18 3:39 
QuestionWant to learn C. Newbie. Where to start? Pin
Quickbeam121316-Sep-18 20:40
memberQuickbeam121316-Sep-18 20:40 
AnswerRe: Want to learn C. Newbie. Where to start? Pin
Richard MacCutchan16-Sep-18 23:01
protectorRichard MacCutchan16-Sep-18 23:01 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Quickbeam121316-Sep-18 23:14
memberQuickbeam121316-Sep-18 23:14 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Richard MacCutchan17-Sep-18 0:00
protectorRichard MacCutchan17-Sep-18 0:00 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Quickbeam121317-Sep-18 6:23
memberQuickbeam121317-Sep-18 6:23 
AnswerRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 2:42
memberleon de boer17-Sep-18 2:42 
AnswerRe: Want to learn C. Newbie. Where to start? Pin
CPallini17-Sep-18 6:27
mveCPallini17-Sep-18 6:27 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 6:34
memberleon de boer17-Sep-18 6:34 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
CPallini17-Sep-18 6:56
mveCPallini17-Sep-18 6:56 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 7:09
memberleon de boer17-Sep-18 7:09 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
CPallini17-Sep-18 9:05
mveCPallini17-Sep-18 9:05 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 19:36
memberleon de boer17-Sep-18 19:36 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Dave Kreskowiak17-Sep-18 11:48
mveDave Kreskowiak17-Sep-18 11:48 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer17-Sep-18 18:24
memberleon de boer17-Sep-18 18:24 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
Dave Kreskowiak18-Sep-18 4:00
mveDave Kreskowiak18-Sep-18 4:00 
GeneralRe: Want to learn C. Newbie. Where to start? Pin
leon de boer18-Sep-18 4:12
memberleon de boer18-Sep-18 4:12 

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.