/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/MainLoop.c

  • Committer: Gustav Hartvigsson
  • Date: 2016-01-29 17:49:29 UTC
  • mto: This revision was merged to the branch mainline in revision 117.
  • Revision ID: gustav.hartvigsson@gmail.com-20160129174929-x1sra3145ifon5qs
* Removed stupid, non-sense error from SLinkedList.
* Redid SMutex -- Still needs work.
* Reduced the number of itts that has to be done in the test_mainloop ()/_do_some_work_[1,2] ()
* Fixed the init-loops for the list mutexes in s_main_loop_new ()

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
s_main_loop_new () {
108
108
  SMainLoop * self = malloc (sizeof (SMainLoop));
109
109
 
110
 
  for (sint i = 0; i <= S_MAIN_LOOP_RING_LAST; i++){
111
 
    for (sint j = 0; j <= S_MAIN_LOOP_STATE_LAST; j++){
 
110
  for (sint i = 0; i < S_MAIN_LOOP_RING_LAST; i++){
 
111
    for (sint j = 0; j < S_MAIN_LOOP_STATE_LAST; j++){
112
112
      self->mutex[i][j] = s_mutex_new ();
113
113
    }
114
114
  }
232
232
  s_mutex_free (self->teardown_handler_mutex);
233
233
  
234
234
  free (self);
235
 
  self = NULL;
236
235
}
237
236
 
238
237
void