Ramine
unread,Mar 16, 2015, 5:09:55 PM3/16/15You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello,
Today i will speak about my SeqlockX that is a variant of the classical
Seqlock that eliminates livelock of the readers when there is many writer.
You will read on internet that Seqlock doesn't work with datastructures
that work with "pointers", because when you use the reader section
in an optimistic way, if the writers modify some pointers , you can get
an "exception", so since it is an exception what can we do about it ?
in Delphi and FreePascal you can catch this exception called
"EAccessViolation" inside the reader section like this:
try
// your reader section here
except
// IO error
On E : EAccessViolation do;
else
raise;
end;
So this way you can effectively use my SeqlockX with datastructures that
uses pointers.
Thank you,
Amine Moulay Ramdane.