mainTutka - Support: sr #108174, Error in check for threads support?

 
 

sr #108174: Error in check for threads support?

Submitter:  None
Submitted:  Thu 01 Nov 2012 08:30:25 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Wont Do
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Sep 2014 08:10:47 PM UTC, comment #1: 

Tutka has been rewritten in Qt, so this bug is now obsolete.

Vesa Halttunen <vesuri>
Group administrator
Thu 01 Nov 2012 08:30:25 PM UTC, original submission:  

This code:

  if (!g_thread_supported() ) {
    g_thread_init(NULL);
    gdk_threads_init();
  } else {
    fprintf(stderr,  "No threads implementation. Tutka requires threads\n");
    return -1;
  }

in main.c goes into the else statement when Tutka is run under Bodhi 2.1.0  (glib 2.32.3)  and the program won't start. If the if statement is removed however, and just g_thread_init and gdk_threads is called the program runs. Might not be safe without any error checking, but is the way it's done now with g_thread_supported really correct?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vesuri (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-11 vesuri StatusNone Wont Do
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code