Click here to Skip to main content
15,887,135 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionHow to manage a share buf array? Pin
donniehan18-Sep-09 0:04
donniehan18-Sep-09 0:04 
AnswerRe: How to manage a share buf array? Pin
Luc Pattyn18-Sep-09 2:32
sitebuilderLuc Pattyn18-Sep-09 2:32 
GeneralRe: How to manage a share buf array? Pin
donniehan18-Sep-09 4:06
donniehan18-Sep-09 4:06 
GeneralRe: How to manage a share buf array? Pin
Luc Pattyn18-Sep-09 4:15
sitebuilderLuc Pattyn18-Sep-09 4:15 
GeneralRe: How to manage a share buf array? Pin
donniehan18-Sep-09 13:43
donniehan18-Sep-09 13:43 
GeneralRe: How to manage a share buf array? Pin
Luc Pattyn18-Sep-09 14:48
sitebuilderLuc Pattyn18-Sep-09 14:48 
GeneralRe: How to manage a share buf array? Pin
donniehan20-Sep-09 18:03
donniehan20-Sep-09 18:03 
GeneralRe: How to manage a share buf array? [modified] Pin
Luc Pattyn21-Sep-09 1:17
sitebuilderLuc Pattyn21-Sep-09 1:17 
Hi,

1.
language does not really matter, I've done what I suggested in C many times.

2.
when message size isn't fixed, I find it easiest to use a few different fixed sizes; i.e. I would define appropriate values size1<size2<size3 (with size3 large enough to hold any message); and preallocate a number of buffers for each of those; then use as many emptyCollections as there are sizes, and use only one filledCollection.

3.
Not sure why you would need contiguous memory, unless some DMA-based peripheral is involved.

Smile | :)

Luc Pattyn

Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

Local announcement (Antwerp region): Lange Wapper? Neen!


modified on Monday, September 21, 2009 8:06 AM

GeneralRe: How to manage a share buf array? Pin
donniehan21-Sep-09 2:00
donniehan21-Sep-09 2:00 
GeneralRe: How to manage a share buf array? Pin
Luc Pattyn21-Sep-09 2:07
sitebuilderLuc Pattyn21-Sep-09 2:07 
QuestionHough Circular transform Pin
lcssiva16-Sep-09 1:38
lcssiva16-Sep-09 1:38 
AnswerRe: Hough Circular transform Pin
Alan Balkany16-Sep-09 3:27
Alan Balkany16-Sep-09 3:27 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 4:08
sitebuilderLuc Pattyn16-Sep-09 4:08 
GeneralRe: Hough Circular transform Pin
Alan Balkany16-Sep-09 4:24
Alan Balkany16-Sep-09 4:24 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 4:39
sitebuilderLuc Pattyn16-Sep-09 4:39 
GeneralRe: Hough Circular transform Pin
Fatbuddha 116-Sep-09 5:02
Fatbuddha 116-Sep-09 5:02 
GeneralRe: Hough Circular transform Pin
Alan Balkany16-Sep-09 5:17
Alan Balkany16-Sep-09 5:17 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 5:33
sitebuilderLuc Pattyn16-Sep-09 5:33 
GeneralRe: Hough Circular transform [modified] Pin
Member 419459316-Sep-09 5:12
Member 419459316-Sep-09 5:12 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 5:29
sitebuilderLuc Pattyn16-Sep-09 5:29 
GeneralRe: Hough Circular transform Pin
lcssiva16-Sep-09 4:34
lcssiva16-Sep-09 4:34 
QuestionImage circle counting Pin
lcssiva16-Sep-09 1:14
lcssiva16-Sep-09 1:14 
AnswerRe: Image circle counting Pin
Alan Balkany16-Sep-09 3:31
Alan Balkany16-Sep-09 3:31 
AnswerRe: Image circle counting Pin
Fatbuddha 116-Sep-09 5:03
Fatbuddha 116-Sep-09 5:03 
QuestionNeed cut optimization algorith Pin
xx77abs14-Sep-09 1:42
xx77abs14-Sep-09 1: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.