Tip for the doc team: make TMonitor.Enter docs more clear on non-blocking re-entry from the same thread
Posted by jpluimers on 2018/04/19
Even when the Delphi team was large, the documentation was lacking, so with the reduced Delphi team size, I don’t have high expectations of the below to get fixed.
But since much of the post Delphi 7 run-time library looks a lot like the .NET core, you can usually fallback to the Microsoft documentation.
Tip for the doc team: make http://docwiki.embarcadero.com/Libraries/en/System.TMonitor.Enter more clear. Especially that if the same thread calls TMonitor.Enter more than one time, it will allow entry without blocking as per System.Threading.Monitor.Enter Method (Object) documentation https://msdn.microsoft.com/en-us/library/de0542zz
(note that this got introduced in Delphi XE3: http://docwiki.embarcadero.com/Libraries/XE3/en/System.TMonitor.Enter)
–jeroen
via: [WayBack] Tip for the doc team: make http://docwiki.embarcadero.com/Libraries/Seattle/e…






edwinyzh said
@Jeroen, I use critical sections all the time, but I seem having the difficulty identifying the differences or advantages TMonitor have over TCriticalSection, any tips ;)
jpluimers said
Tip: read http://www.thedelphigeek.com/