Explorar o código

Merge pull request #2 from ErnestChen1/master

【完善】一处代码
朱天龙 (Armink) %!s(int64=6) %!d(string=hai) anos
pai
achega
2b9318f517
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      librws/src/rws_thread.c

+ 1 - 1
librws/src/rws_thread.c

@@ -161,7 +161,7 @@ rws_thread rws_thread_create(rws_thread_funct thread_function, void *user_object
         {
             if (pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE) == 0)
             {
-                attr.stack_size = 1024 * 8;
+                pthread_attr_setstacksize(&attr, 1024 * 8);
                 res = pthread_create(&t->thread, &attr, &rws_thread_func_priv, (void *)t);
             }
         }