Not logged in. · Lost password · Register
Forum: MatriX RSS
dtjoa #1
Member since Jul 2012 · 39 posts
Group memberships: Members
Show profile · Link to this post
Subject: Question on Matrix Threading

I have a general question on Matrix's Threading.

In my client app, most of the time, I receive callback events from the same main windows thread I start the Matrix objects.
But, once in awhile, I got different thread reporting the callback events. See below.

2012-09-24 17:10:43,107 [1] INFO  MyXmpp.XmppPresenter - SND: <stream:stream xmlns:stream="" xmlns="jabber:client" to="" version="1.0" >
2012-09-24 17:10:43,122 [1] INFO  MyXmpp.XmppPresenter - OnCreateBoshSession
2012-09-24 17:10:43,809 [7] INFO  MyXmpp.XmppPresenter - RCV: <stream:stream xmlns:stream="" xmlns="jabber:client" from="" version="1.0" id="90e3a60c8ab6e4ec338158d70c878c4be95d6c34" >
2012-09-24 17:10:43,809 [7] INFO  MyXmpp.XmppPresenter - RCV: <stream:features xmlns:stream="">
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
  <c xmlns="" hash="sha-1" node="" ver="yy7di5kE0syuCXOQTXNBTclpNTo=" />
  <register xmlns="" />

When this happens, I got all my events from Thread [7].

I was wondering whether I should expect this, or in what situation this might occur.
Alex #2
Member since Feb 2003 · 4330 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
MatriX tries to find your main GUI thread, or used the dispatcher you can pass to invoke all of the events to your UI threads.
Internal MatriX is based on async sockets which work with thread pools.

Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS