Attention: Part of FASt Server requires some tool/utility API's like a thread safe pool of resources.
I have put those utilities together into a package called FAStUtil. And its here: www.jamesladdcode.com/fast-1.0.0-rc1.zip (http://www.jamesladdcode.com/fast-1.0.0-rc1.zip)
You will have to download the zip before you can open it and see the contents. You done need FASt Server to make use of
FAStUtil. Please let me know what you think.
There is a Thread Safe Pool but there will be more.
Rgs, striker.
ps - Any comments from downlaoders etc ?
Awwwe, isnt anyone going to ask why there are two CriticalSections when it appears that one could be used for
resource Pool synchronisation ?
Rgs, striker
James, why are there are two CriticalSections when it appears that one could be used for
resource Pool synchronization? :bdg :bg
Mark,
Wow, where did that question come from. Im glad you asked it.
The reason is, the resource pool is built to be thread safe but also, so that
threads putting a resource do not have to wait for threads taking a resource.
The only time a wait between a take and a put is necessary is when the take pool
is empty. This maximises parallelism.
Neat huh ?
rgs, striker
Aaaaha! All "over my head" but sounds good. :)
I think your code is so complex, few can understand it... that is why you are getting so few comments.
Mark,
QuoteI think your code is so complex, few can understand it... that is why you are getting so few comments
Do you really think it is complex ?
Im happy to make it "easier". Maybe you can suggest how ?
Rgs, striker.
EDIT: There is a new version of the utils available <-
bad link :(