Skip to content

Commit e5fd2d1

Browse files
committed
Add initialization and termination
1 parent 144f15b commit e5fd2d1

4 files changed

Lines changed: 93 additions & 0 deletions
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
*
3+
* gaussian_mixture_simple_initialize.c
4+
*
5+
* Code generation for function 'gaussian_mixture_simple_initialize'
6+
*
7+
*/
8+
9+
/* Include files */
10+
#include "gaussian_mixture_simple_initialize.h"
11+
#include "fetch_thresholds.h"
12+
#include "fetch_thresholds_data.h"
13+
#include "rt_nonfinite.h"
14+
15+
/* Function Definitions */
16+
void gaussian_mixture_simple_initialize(void)
17+
{
18+
rt_InitInfAndNaN();
19+
omp_init_nest_lock(&emlrtNestLockGlobal);
20+
isInitialized_gaussian_mixture_simple = true;
21+
}
22+
23+
/* End of code generation (gaussian_mixture_simple_initialize.c) */
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
*
3+
* gaussian_mixture_simple_initialize.h
4+
*
5+
* Code generation for function 'gaussian_mixture_simple_initialize'
6+
*
7+
*/
8+
9+
#ifndef GAUSSIAN_MIXTURE_SIMPLE_INITIALIZE_H
10+
#define GAUSSIAN_MIXTURE_SIMPLE_INITIALIZE_H
11+
12+
/* Include files */
13+
#include <stddef.h>
14+
#include <stdlib.h>
15+
#include "rtwtypes.h"
16+
#include "omp.h"
17+
#include "fetch_thresholds_types.h"
18+
19+
/* Function Declarations */
20+
extern void gaussian_mixture_simple_initialize(void);
21+
22+
#endif
23+
24+
/* End of code generation (gaussian_mixture_simple_initialize.h) */
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
*
3+
* fetch_thresholds_terminate.c
4+
*
5+
* Code generation for function 'gaussian_mixture_simple_terminate'
6+
*
7+
*/
8+
9+
/* Include files */
10+
#include "gaussian_mixture_simple_terminate.h"
11+
#include "fetch_thresholds.h"
12+
#include "fetch_thresholds_data.h"
13+
#include "rt_nonfinite.h"
14+
15+
/* Function Definitions */
16+
void gaussian_mixture_simple_terminate(void)
17+
{
18+
omp_destroy_nest_lock(&emlrtNestLockGlobal);
19+
isInitialized_gaussian_mixture_simple = false;
20+
}
21+
22+
/* End of code generation (gaussian_mixture_simple_terminate.c) */
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
*
3+
* gaussian_mixture_simple_terminate.h
4+
*
5+
* Code generation for function 'gaussian_mixture_simple_terminate'
6+
*
7+
*/
8+
9+
#ifndef GAUSSIAN_MIXTURE_SIMPLE_TERMINATE_H
10+
#define GAUSSIAN_MIXTURE_SIMPLE_TERMINATE_H
11+
12+
/* Include files */
13+
#include <stddef.h>
14+
#include <stdlib.h>
15+
#include "rtwtypes.h"
16+
#include "omp.h"
17+
#include "fetch_thresholds_types.h"
18+
19+
/* Function Declarations */
20+
extern void gaussian_mixture_simple_terminate(void);
21+
22+
#endif
23+
24+
/* End of code generation (gaussian_mixture_simple_terminate.h) */

0 commit comments

Comments
 (0)