Results 1 to 2 of 2

Thread: QFile* threads

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2008
    Posts
    60
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QFile* threads

    Hi,
    I am using QFileDialog with one application.
    When observing process stack, it shows following...

    Thread 3 (Thread 183630768 (LWP 10648)):
    #0 0x008e348d in pthread_cond_wait@@GLIBC_2.3.2 ()
    #1 0x02a34178 in QWaitCondition::wait ()
    #2 0x06bbbced in QFileSystemModel::sort ()
    #3 0x02a335a0 in QThread::setPriority ()
    #4 0x008e0d78 in start_thread () from /lib/tls/libpthread.so.0
    #5 0x05e613fa in clone () from /lib/tls/libc.so.6
    Thread 2 (Thread 173140912 (LWP 10649)):
    #0 0x05e5a757 in ___newselect_nocancel () from /lib/tls/libc.so.6
    #1 0x02b55bbf in QEventDispatcherUNIX::select ()
    #2 0x02b56c50 in QEventDispatcherUNIXPrivate::doSelect ()
    #3 0x02b57117 in QEventDispatcherUNIX:rocessEvents ()
    #4 0x02b26b6d in QEventLoop:rocessEvents ()
    #5 0x02b26eed in QEventLoop::exec ()
    #6 0x02a30087 in QThread::exec ()
    #7 0x02b0b91e in QFSFileEngine::rmdir ()
    #8 0x02a335a0 in QThread::setPriority ()
    #9 0x008e0d78 in start_thread () from /lib/tls/libpthread.so.0
    #10 0x05e613fa in clone () from /lib/tls/libc.so.6

    Can you please let me know how can I stop these threads?
    Thank you.

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    519
    Thanks
    13
    Thanked 77 Times in 75 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QFile* threads

    Why do you want to do that? At least thread 2 is necessary for the event loop in the dialog, without it you would have trouble even clicking a button. I don't know the purpose of thread 3 but you can be sure that it's not just there to look pretty.

    Ginsengelf

Similar Threads

  1. Replies: 8
    Last Post: 27th March 2013, 11:51
  2. Why do some QWidgets create own threads?
    By donglebob in forum Qt Programming
    Replies: 5
    Last Post: 6th July 2010, 17:01
  3. How to wait for events produced by non-Qt threads?
    By Palpatine in forum Qt Programming
    Replies: 3
    Last Post: 21st May 2009, 21:45
  4. No context switch between Threads and parent ?
    By donglebob in forum Qt Programming
    Replies: 15
    Last Post: 29th October 2008, 22:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.