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

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="http://etherx.jabber.org/streams" xmlns="jabber:client" to="svr1070.uc.test.lab.com" 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="http://etherx.jabber.org/streams" xmlns="jabber:client" from="svr1070.uc.test.lab.com" version="1.0" id="90e3a60c8ab6e4ec338158d70c878c4be95d6c34" >
2012-09-24 17:10:43,809 [7] INFO  MyXmpp.XmppPresenter - RCV: <stream:features xmlns:stream="http://etherx.jabber.org/streams">
  <mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <mechanism>PLAIN</mechanism>
  </mechanisms>
  <c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="yy7di5kE0syuCXOQTXNBTclpNTo=" />
  <register xmlns="http://jabber.org/features/iq-register" />
</stream:features>

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.
Avatar
Alex #2
Member since Feb 2003 · 4322 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.

Alex
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