Re: [fpc-devel] advancedipc fixes

2015-10-05 Thread Michael Van Canneyt
On Mon, 5 Oct 2015, Ondrej Pokorny wrote: Hello! I talked to Mattias about the advancedipc implementation and he noticed that the thread ID doesn't have to be necessarily a system-wide unique constant (which I didn't know). Applied the FCL patch, thank you very much. Michael. ___

[fpc-devel] advancedipc fixes

2015-10-05 Thread Ondrej Pokorny
Hello! I talked to Mattias about the advancedipc implementation and he noticed that the thread ID doesn't have to be necessarily a system-wide unique constant (which I didn't know). Therefore I fixed advancedipc.pp: 1.) Changed GetCurrentThreadID to GetProcessID. 2.) Added a critical section