Getting number of messages in MessageBox

2013-08-05 Thread Marek Janukowicz
I'm using std.concurrency message passing and I'd like to check which thread might be a bottleneck. The easiest would be check number of messages piled up for each of them, but I could not find a way to do that. Is it possible? Every detail about MessageBox seems to be hidden... -- Marek Januk

Re: Getting number of messages in MessageBox

2013-08-05 Thread Andrej Mitrovic
On 8/6/13, Marek Janukowicz wrote: > I'm using std.concurrency message passing and I'd like to check which thread > might be a bottleneck. The easiest would be check number of messages piled > up for each of them, but I could not find a way to do that. Is it possible? > > Every detail about Messag

Re: Getting number of messages in MessageBox

2013-08-05 Thread Ali Çehreli
On 08/05/2013 04:18 PM, Marek Janukowicz wrote: I'm using std.concurrency message passing and I'd like to check which thread might be a bottleneck. The easiest would be check number of messages piled up for each of them, but I could not find a way to do that. Is it possible? Every detail about Me

Re: Getting number of messages in MessageBox

2013-08-05 Thread Marek Janukowicz
Ali Çehreli wrote: > On 08/05/2013 04:18 PM, Marek Janukowicz wrote: >> I'm using std.concurrency message passing and I'd like to check which >> thread might be a bottleneck. The easiest would be check number of >> messages piled up for each of them, but I could not find a way to do >> that. Is it

Re: Getting number of messages in MessageBox

2013-08-06 Thread Gabi
On Tuesday, 6 August 2013 at 06:15:20 UTC, Marek Janukowicz wrote: Ali Çehreli wrote: On 08/05/2013 04:18 PM, Marek Janukowicz wrote: I'm using std.concurrency message passing and I'd like to check which thread might be a bottleneck. The easiest would be check number of messages piled up for

Re: Getting number of messages in MessageBox

2013-08-06 Thread Marek Janukowicz
Gabi wrote: > Why not go for the trivial solution - just increase/decrease a > counter for each push/pop message? Yeah, that's most likely what I'll end up with, but it's a pity such information exists and I only can't access it because someone decided to make it private... or should I file a b

Re: Getting number of messages in MessageBox

2013-08-06 Thread dennis luehring
Am 06.08.2013 09:30, schrieb Marek Janukowicz: Gabi wrote: Why not go for the trivial solution - just increase/decrease a counter for each push/pop message? Yeah, that's most likely what I'll end up with, but it's a pity such information exists and I only can't access it because someone decid

Re: Getting number of messages in MessageBox

2013-08-06 Thread Marek Janukowicz
dennis luehring wrote: > the question is do the published counter then needs locking - and make > it slow for all - just for beeing getable? Good point - but I believe the code operating on the counter is synchronized already, so synchronized getter would not really slow things down. -- Marek J

Re: Getting number of messages in MessageBox

2013-08-06 Thread Gabi
On Tuesday, 6 August 2013 at 07:47:10 UTC, Marek Janukowicz wrote: dennis luehring wrote: the question is do the published counter then needs locking - and make it slow for all - just for beeing getable? Good point - but I believe the code operating on the counter is synchronized already, so

Re: Getting number of messages in MessageBox

2013-08-06 Thread Sean Kelly
On Aug 5, 2013, at 4:18 PM, Marek Janukowicz wrote: > I'm using std.concurrency message passing and I'd like to check which thread > might be a bottleneck. The easiest would be check number of messages piled > up for each of them, but I could not find a way to do that. Is it possible? > Every

Re: Getting number of messages in MessageBox

2013-08-06 Thread Dmitry Olshansky
06-Aug-2013 03:18, Marek Janukowicz пишет: I'm using std.concurrency message passing and I'd like to check which thread might be a bottleneck. The easiest would be check number of messages piled up for each of them, but I could not find a way to do that. Is it possible? Every detail about Message

Re: Getting number of messages in MessageBox

2013-08-06 Thread Sean Kelly
On Aug 6, 2013, at 1:27 PM, Dmitry Olshansky wrote: > 06-Aug-2013 03:18, Marek Janukowicz пишет: >> I'm using std.concurrency message passing and I'd like to check which thread >> might be a bottleneck. The easiest would be check number of messages piled >> up for each of them, but I could not fi