Ignore:
Timestamp:
Nov 10, 2001, 1:47:48 PM (24 years ago)
Author:
sandervl
Message:

Implemented Get/SetProcessAffinityMask & SetThreadAffinityMask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/process.cpp

    r4658 r7318  
    1 /* $Id: process.cpp,v 1.8 2000-11-21 11:35:09 sandervl Exp $ */
     1/* $Id: process.cpp,v 1.9 2001-11-10 12:47:47 sandervl Exp $ */
    22
    33/*
     
    125125{
    126126    ProcessAffinityMask = affmask;
     127    //TODO: should update all threads, but that doesn't seem possible in OS/2
     128    SetThreadAffinityMask(GetCurrentThread(), ProcessAffinityMask);
    127129    return TRUE;
    128130}
     
    137139    if(lpProcessAffinityMask)
    138140        *lpProcessAffinityMask=ProcessAffinityMask;
    139     if(lpSystemAffinityMask)
    140         *lpSystemAffinityMask=1;
     141
     142    if(lpSystemAffinityMask) {
     143        OSLibDosQueryAffinity(MASK_SYSTEM, lpSystemAffinityMask);
     144    }
    141145    return TRUE;
    142146}
Note: See TracChangeset for help on using the changeset viewer.