File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1038,50 +1038,6 @@ extern (C) void rt_moduleTlsCtor();
10381038extern (C ) void rt_moduleTlsDtor();
10391039
10401040
1041- // regression test for Issue 13416
1042- version (FreeBSD ) unittest
1043- {
1044- static void loop ()
1045- {
1046- pthread_attr_t attr;
1047- pthread_attr_init(&attr);
1048- auto thr = pthread_self();
1049- foreach (i; 0 .. 50 )
1050- pthread_attr_get_np(thr, &attr);
1051- pthread_attr_destroy(&attr);
1052- }
1053-
1054- auto thr = new Thread (&loop).start();
1055- foreach (i; 0 .. 50 )
1056- {
1057- thread_suspendAll();
1058- thread_resumeAll();
1059- }
1060- thr.join();
1061- }
1062-
1063- version (DragonFlyBSD ) unittest
1064- {
1065- static void loop ()
1066- {
1067- pthread_attr_t attr;
1068- pthread_attr_init(&attr);
1069- auto thr = pthread_self();
1070- foreach (i; 0 .. 50 )
1071- pthread_attr_get_np(thr, &attr);
1072- pthread_attr_destroy(&attr);
1073- }
1074-
1075- auto thr = new Thread (&loop).start();
1076- foreach (i; 0 .. 50 )
1077- {
1078- thread_suspendAll();
1079- thread_resumeAll();
1080- }
1081- thr.join();
1082- }
1083-
1084-
10851041// /////////////////////////////////////////////////////////////////////////////
10861042// lowlovel threading support
10871043// /////////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -1504,6 +1504,50 @@ package void* getStackBottomImpl() nothrow @nogc
15041504 static assert (false , " Platform not supported." );
15051505}
15061506
1507+
1508+ // regression test for Issue 13416
1509+ version (FreeBSD ) unittest
1510+ {
1511+ static void loop ()
1512+ {
1513+ pthread_attr_t attr;
1514+ pthread_attr_init(&attr);
1515+ auto thr = pthread_self();
1516+ foreach (i; 0 .. 50 )
1517+ pthread_attr_get_np(thr, &attr);
1518+ pthread_attr_destroy(&attr);
1519+ }
1520+
1521+ auto thr = new Thread (&loop).start();
1522+ foreach (i; 0 .. 50 )
1523+ {
1524+ thread_suspendAll();
1525+ thread_resumeAll();
1526+ }
1527+ thr.join();
1528+ }
1529+
1530+ version (DragonFlyBSD ) unittest
1531+ {
1532+ static void loop ()
1533+ {
1534+ pthread_attr_t attr;
1535+ pthread_attr_init(&attr);
1536+ auto thr = pthread_self();
1537+ foreach (i; 0 .. 50 )
1538+ pthread_attr_get_np(thr, &attr);
1539+ pthread_attr_destroy(&attr);
1540+ }
1541+
1542+ auto thr = new Thread (&loop).start();
1543+ foreach (i; 0 .. 50 )
1544+ {
1545+ thread_suspendAll();
1546+ thread_resumeAll();
1547+ }
1548+ thr.join();
1549+ }
1550+
15071551package struct LLThreadProperties
15081552{
15091553 void delegate () nothrow dg;
You can’t perform that action at this time.
0 commit comments