/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

* Merged the Mark and Sweep MM thingy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "MainLoop.h"
2
2
#include "Thread.h"
3
3
#include "LinkedList.h"
 
4
#include "mm_mark_and_sweep.h"
 
5
#include "mm.h"
 
6
#include "utils.h"
4
7
 
5
8
/*
6
9
Copyright (c) 2013-2016 Gustav Hartvigsson
174
177
        self->ring_1_state = S_MAIN_LOOP_STATE_SLEEP;
175
178
        break;
176
179
      case (S_MAIN_LOOP_STATE_SLEEP):
 
180
        if(s_mm_get_type () == S_MM_TYPE_MARK_AND_SWEEP) {
 
181
          s_mm_mark_and_sweep_sweep ();
 
182
        }
177
183
        s_usleep (1);
178
184
        self->ring_1_state = S_MAIN_LOOP_STATE_EVENT;
179
185
        break;