VirtualBox

Changeset 41001 in vbox for trunk/src/VBox/Runtime/testcase


Ignore:
Timestamp:
Apr 20, 2012 7:07:05 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
77559
Message:

tstSemXRoads: warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTSemXRoads.cpp

    r28800 r41001  
    125125    for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++)
    126126    {
    127         rc = RTThreadCreateF(&ahThreadsX[i], tstTrafficNSThread, (void *)i, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "NS-%u", i);
     127        rc = RTThreadCreateF(&ahThreadsX[i], tstTrafficNSThread, (void *)(uintptr_t)i, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "NS-%u", i);
    128128        RTTEST_CHECK_RC_OK(g_hTest, rc);
    129129    }
     
    131131    for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++)
    132132    {
    133         rc = RTThreadCreateF(&ahThreadsX[i], tstTrafficEWThread, (void *)i, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "NS-%u", i);
     133        rc = RTThreadCreateF(&ahThreadsX[i], tstTrafficEWThread, (void *)(uintptr_t)i, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "NS-%u", i);
    134134        RTTEST_CHECK_RC_OK(g_hTest, rc);
    135135    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette