File tree 3 files changed +5
-4
lines changed
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
* ~
4
4
contrib /
5
5
buildinfo.mat
6
+ * .zip
Original file line number Diff line number Diff line change @@ -154,16 +154,16 @@ stl_sleep(double t)
154
154
155
155
156
156
int
157
- stl_thread_create (char * func , arg_t * arg , char * name )
157
+ stl_thread_create (char * func , void * arg , char * name )
158
158
{
159
159
pthread_attr_t attr ;
160
- void * (* f )(int32_t );
160
+ void * (* f )(void * );
161
161
int status ;
162
162
int slot ;
163
163
thread * p , * tp = NULL ;
164
164
165
165
// map function name to a pointer
166
- f = (void * (* )(int32_t )) stl_get_functionptr (func );
166
+ f = (void * (* )(void * )) stl_get_functionptr (func );
167
167
if (f == NULL )
168
168
stl_error ("thread function named [%s] not found" , func );
169
169
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ char *stl_stralloc(char *s);
12
12
void stl_sleep (double t );
13
13
14
14
// threads
15
- int32_t stl_thread_create (char * func , arg_t * arg , char * name );
15
+ int32_t stl_thread_create (char * func , void * arg , char * name );
16
16
int32_t stl_thread_join (int32_t slot );
17
17
void stl_thread_cancel (int32_t slot );
18
18
int32_t stl_thread_self ();
You can’t perform that action at this time.
0 commit comments