It’s not unusual to encounter undocumented methods in a programming language, it’s just the nature of the beast. Take for example Delphi 2005. It has a new Queue method, for allowing a programmer to queue a call to the main user thread, rather than serially invoke it (it’s not quite serial, there’s a WaitForSingleObject in there).
This interestingly brings up another item. There are two models generally associated with timed events. The first model is the Invoke, leaving at least an interval gap between the invocations, the second model is the invoke, and even if it’s not finished invoke it again when the interval elapses. The first model can be emulated using the standard Synchronize call, the second can be emulated using the Queue call. Because they both are operating from the one task queue, either method would be safe to use on mt-unsafe code. The advantage of the Queue method is that you can interlock the thread and the GUI in a looser manner, as the thread does not wait for the GUI to do it’s stuff before continuing. This means that, for example you could be informing a gui component to repaint itself when the underlying dataset changes.
One Reply to “Undocumented methods”
Comments are closed.
Hello,
we found your comment from march 08 2004 on your website regarding installing VMWARE and rewriting the makefile for 2.6 kernel.
We encounter the same problem installing vmwaretools and would like to ask you what you changed to have it work.
regards,
harry kal