Click here to Skip to main content
14,770,445 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 6:02
MemberEl Corazon5-Sep-07 6:02 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 6:34
MemberEl Corazon5-Sep-07 6:34 
GeneralRe: Reader Writer lock Pin
Waldermort5-Sep-07 7:17
MemberWaldermort5-Sep-07 7:17 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 8:38
MemberEl Corazon5-Sep-07 8:38 
GeneralRe: Reader Writer lock Pin
Matthew Faithfull5-Sep-07 6:49
MemberMatthew Faithfull5-Sep-07 6:49 
GeneralRe: Reader Writer lock Pin
Waldermort5-Sep-07 7:15
MemberWaldermort5-Sep-07 7:15 
AnswerRe: Reader Writer lock Pin
Matthew Faithfull5-Sep-07 7:28
MemberMatthew Faithfull5-Sep-07 7:28 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 8:42
MemberEl Corazon5-Sep-07 8: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 10:30
MemberMatthew Faithfull5-Sep-07 10:30 
GeneralRe: Reader Writer lock Pin
El Corazon5-Sep-07 10:52
MemberEl Corazon5-Sep-07 10:52 
QuestionA very basic question Pin
HakunaMatada5-Sep-07 1:24
MemberHakunaMatada5-Sep-07 1:24 
AnswerRe: A very basic question Pin
Matthew Faithfull5-Sep-07 1:47
MemberMatthew Faithfull5-Sep-07 1:47 
AnswerRe: A very basic question Pin
Waldermort5-Sep-07 1:58
MemberWaldermort5-Sep-07 1:58 
AnswerRe: A very basic question Pin
Hamid_RT5-Sep-07 2:02
MemberHamid_RT5-Sep-07 2:02 
QuestionIE question Pin
Mohit19825-Sep-07 1:18
MemberMohit19825-Sep-07 1:18 
AnswerRe: IE question Pin
Hamid_RT5-Sep-07 2:05
MemberHamid_RT5-Sep-07 2:05 
QuestionHow to retrive the handle of other window. Pin
GauranG Shah5-Sep-07 0:31
MemberGauranG Shah5-Sep-07 0:31 
AnswerRe: How to retrive the handle of other window. Pin
Waldermort5-Sep-07 0:56
MemberWaldermort5-Sep-07 0:56 
QuestionMFC Multiple Inheritance Pin
Krishnatv4-Sep-07 23:50
MemberKrishnatv4-Sep-07 23:50 
AnswerRe: MFC Multiple Inheritance Pin
toxcct4-Sep-07 23:53
Membertoxcct4-Sep-07 23:53 
GeneralRe: MFC Multiple Inheritance Pin
Krishnatv5-Sep-07 0:07
MemberKrishnatv5-Sep-07 0:07 
GeneralRe: MFC Multiple Inheritance Pin
toxcct5-Sep-07 0:20
Membertoxcct5-Sep-07 0:20 
GeneralRe: MFC Multiple Inheritance Pin
BadKarma5-Sep-07 5:35
MemberBadKarma5-Sep-07 5:35 
AnswerRe: MFC Multiple Inheritance Pin
Matthew Faithfull5-Sep-07 1:01
MemberMatthew Faithfull5-Sep-07 1:01 
GeneralRe: MFC Multiple Inheritance Pin
Krishnatv5-Sep-07 1:46
MemberKrishnatv5-Sep-07 1: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.