Click here to Skip to main content
15,900,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 5:02
El Corazon5-Sep-07 5:02 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 5:34
El Corazon5-Sep-07 5:34 
GeneralRe: Reader Writer lock Pin
Waldermort5-Sep-07 6:17
Waldermort5-Sep-07 6:17 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 7:38
El Corazon5-Sep-07 7:38 
GeneralRe: Reader Writer lock Pin
Matthew Faithfull5-Sep-07 5:49
Matthew Faithfull5-Sep-07 5:49 
GeneralRe: Reader Writer lock Pin
Waldermort5-Sep-07 6:15
Waldermort5-Sep-07 6:15 
AnswerRe: Reader Writer lock Pin
Matthew Faithfull5-Sep-07 6:28
Matthew Faithfull5-Sep-07 6:28 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 7:42
El Corazon5-Sep-07 7:42 
Matthew Faithfull wrote:
The theory is that if you never have enough asynchronicity between your threads to get 3 items then you probably aren't pushing the system hard enough to need the extra performace of no locking.


does that save you anything over a ring buffer? other than possibly memory use? seems more complicated than it should be. Esentially with a CAS operation on the ring buffer indexes, the locking/unlocking of your queue is identical but without the exceptional check for size, it just automatically occurs because of how the CAS works.

_________________________
Asu no koto o ieba, tenjo de nezumi ga warau.
Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

GeneralRe: Reader Writer lock Pin
Matthew Faithfull5-Sep-07 9:30
Matthew Faithfull5-Sep-07 9:30 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 9:52
El Corazon5-Sep-07 9:52 
QuestionA very basic question Pin
HakunaMatada5-Sep-07 0:24
HakunaMatada5-Sep-07 0:24 
AnswerRe: A very basic question Pin
Matthew Faithfull5-Sep-07 0:47
Matthew Faithfull5-Sep-07 0:47 
AnswerRe: A very basic question Pin
Waldermort5-Sep-07 0:58
Waldermort5-Sep-07 0:58 
AnswerRe: A very basic question Pin
Hamid_RT5-Sep-07 1:02
Hamid_RT5-Sep-07 1:02 
QuestionIE question Pin
Mohit19825-Sep-07 0:18
Mohit19825-Sep-07 0:18 
AnswerRe: IE question Pin
Hamid_RT5-Sep-07 1:05
Hamid_RT5-Sep-07 1:05 
QuestionHow to retrive the handle of other window. Pin
GauranG Shah4-Sep-07 23:31
GauranG Shah4-Sep-07 23:31 
AnswerRe: How to retrive the handle of other window. Pin
Waldermort4-Sep-07 23:56
Waldermort4-Sep-07 23:56 
QuestionMFC Multiple Inheritance Pin
Krishnatv4-Sep-07 22:50
Krishnatv4-Sep-07 22:50 
AnswerRe: MFC Multiple Inheritance Pin
toxcct4-Sep-07 22:53
toxcct4-Sep-07 22:53 
GeneralRe: MFC Multiple Inheritance Pin
Krishnatv4-Sep-07 23:07
Krishnatv4-Sep-07 23:07 
GeneralRe: MFC Multiple Inheritance Pin
toxcct4-Sep-07 23:20
toxcct4-Sep-07 23:20 
GeneralRe: MFC Multiple Inheritance Pin
BadKarma5-Sep-07 4:35
BadKarma5-Sep-07 4:35 
AnswerRe: MFC Multiple Inheritance Pin
Matthew Faithfull5-Sep-07 0:01
Matthew Faithfull5-Sep-07 0:01 
GeneralRe: MFC Multiple Inheritance Pin
Krishnatv5-Sep-07 0:46
Krishnatv5-Sep-07 0:46 

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.