We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c511e97 commit 8234fa3Copy full SHA for 8234fa3
CMakeLists.txt
@@ -51,6 +51,7 @@ if (UNIX AND NOT APPLE)
51
endif()
52
53
add_executable(sysinfo "sysinfo.c")
54
+target_link_libraries(sysinfo pthread)
55
56
add_executable(uv_echo "uv_echo.c")
57
target_link_libraries(uv_echo uv)
sysinfo.c
@@ -4,5 +4,14 @@ int
4
main(void)
5
{
6
printf("pagesize = %d\n", getpagesize());
7
+
8
+ {
9
+ size_t stacksize;
10
+ pthread_attr_t attr;
11
+ pthread_attr_init(&attr);
12
+ pthread_attr_getstacksize(&attr, &stacksize);
13
+ printf("pthread stack size = %zu bytes \n", stacksize);
14
+ }
15
16
return 0;
17
}
0 commit comments