Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: thumbnail Pin
Stephane Rodriguez.25-Apr-03 22:26
Stephane Rodriguez.25-Apr-03 22:26 
GeneralWin32 jpeg display question Pin
Mortis25-Apr-03 10:27
Mortis25-Apr-03 10:27 
GeneralRe: Win32 jpeg display question Pin
Michael Dunn25-Apr-03 10:50
sitebuilderMichael Dunn25-Apr-03 10:50 
GeneralRe: Win32 jpeg display question Pin
Mortis26-Apr-03 0:24
Mortis26-Apr-03 0:24 
GeneralArray performance question. Pin
73Zeppelin25-Apr-03 10:26
73Zeppelin25-Apr-03 10:26 
GeneralRe: Array performance question. Pin
David Crow25-Apr-03 10:39
David Crow25-Apr-03 10:39 
GeneralRe: Array performance question. Pin
Brian Shifrin25-Apr-03 10:59
Brian Shifrin25-Apr-03 10:59 
QuestionAnyone use Hoard? Pin
User 988525-Apr-03 9:14
User 988525-Apr-03 9:14 
Hoard claims that it uses a per-processor heap. When I went through the code, it does the following:

It has an array of size 2048, that holds indices of seperate heaps. When a malloc is performed, it identifies the heap to use by the expression

int array_index = (GetCurrentThreadId() / 2) % 2048; (assuming that the thread id never goes above 4096. ) It then looks up the heap to use by
heap_array[array_index]

A number of heaps are initially created. If the heap index returned from the array is 0, it assigns the next free heap to it.

This looks rather like a thread based heap, rather than a processor based heap. How valid is the assumption that threadid will not go above 4096?

Thomas


My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers


modified 29-Aug-18 21:01pm.

AnswerRe: Anyone use Hoard? Pin
Joe Woodbury25-Apr-03 9:40
professionalJoe Woodbury25-Apr-03 9:40 
GeneralRe: Anyone use Hoard? Pin
User 988525-Apr-03 10:06
User 988525-Apr-03 10:06 
GeneralLinker taking forever... Pin
Nitron25-Apr-03 9:08
Nitron25-Apr-03 9:08 
GeneralRe: Linker taking forever... Pin
Anna-Jayne Metcalfe25-Apr-03 9:48
Anna-Jayne Metcalfe25-Apr-03 9:48 
GeneralRe: Linker taking forever... Pin
Nitron25-Apr-03 10:49
Nitron25-Apr-03 10:49 
GeneralRe: Linker taking forever... Pin
Anders Molin25-Apr-03 11:21
professionalAnders Molin25-Apr-03 11:21 
GeneralWriting into an Excelfile Pin
Heiko200325-Apr-03 8:55
sussHeiko200325-Apr-03 8:55 
GeneralExcel Pin
Heiko200325-Apr-03 8:54
sussHeiko200325-Apr-03 8:54 
GeneralRe: Excel Pin
David Crow25-Apr-03 9:02
David Crow25-Apr-03 9:02 
GeneralRe: Excel Pin
Heiko200325-Apr-03 9:30
sussHeiko200325-Apr-03 9:30 
GeneralRe: Excel Pin
David Crow25-Apr-03 9:38
David Crow25-Apr-03 9:38 
GeneralRe: Excel Pin
Heiko200325-Apr-03 10:26
sussHeiko200325-Apr-03 10:26 
GeneralRe: Excel Pin
David Crow25-Apr-03 10:29
David Crow25-Apr-03 10:29 
GeneralRe: Excel Pin
Heiko200325-Apr-03 10:37
sussHeiko200325-Apr-03 10:37 
GeneralRe: Excel Pin
David Crow25-Apr-03 10:42
David Crow25-Apr-03 10:42 
GeneralRe: Excel Pin
Heiko200326-Apr-03 8:26
sussHeiko200326-Apr-03 8:26 
Questionhow to make software evaluation? Pin
_ra25-Apr-03 8:42
_ra25-Apr-03 8:42 

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.