Re: [fpc-devel] Exact details for RTLeventWaitFor and related ?

2020-08-21 Thread Pascal Riekenberg via fpc-devel
> Kirinn via fpc-devel hat am 22. August 2020 > um 03:50 geschrieben: > > For set/reset counting we'd need a semaphore instead of an RTL event, > but I don't think we have an actively supported semaphore implementation > at this time. I can provide one. If you like to, i can send the source f

Re: [fpc-devel] Exact details for RTLeventWaitFor and related ?

2020-08-21 Thread Kirinn via fpc-devel
When I researched synchronisation behavior and wrote the wiki page "Threads", I found that RTL events behave like this: - When the event is set, a single waiting thread is released (in FIFO order), and the event is automatically immediately reset. - The event can only be in a set or unset sta

[fpc-devel] Exact details for RTLeventWaitFor and related ?

2020-08-21 Thread Martin via fpc-devel
I am tracing a race condition in lazCollections TLazThreadedQueue on win-64 What is supposed to happen in the following case: 2 or more threads are waiting on the some event   RTLeventWaitFor(UniqueEvent) 1 thread sets it   RTLeventSetEvent(UniqueEvent) I expect that wakes up exactly ONE threa

Re: [fpc-devel] certificate verify issue of tfphttpclient with openssl

2020-08-21 Thread Michael Van Canneyt via fpc-devel
On Sat, 22 Aug 2020, baldzhang via fpc-devel wrote: certificate verify issue of tfphttpclient with openssl patch file attached, some explain: a) sslsockets.pp the TVerifyCertificateEvent shall allow to modify the "Allow" param, for compatibility reason, function DoVerifyCert: Boolean may

[fpc-devel] certificate verify issue of tfphttpclient with openssl

2020-08-21 Thread baldzhang via fpc-devel
certificate verify issue of tfphttpclient with openssl from wiki page, https client as easy as: tfphttpclient.simpleget('https://192.168.0.1') in TOpenSSLSocketHandler, the VerifyPeerCert is False by default when check the TSSL.VerifyResult, will got one of following: 1) X509_V_ERR_DEPTH_ZERO_

Re: [fpc-devel] strange (?) "result not initialized"

2020-08-21 Thread Martin via fpc-devel
Another strange "not inline warning" All marked as inline Implementation code of Some is first, then Bar, then FOo. So all code is known,when needed. Foo => Bar => Some Bar compiles without warning. So I guess Some was inlined Foo gives a warning. But it warns that "Some is not inlined" Does