delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/12/16:51:08

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 12 Oct 2003 22:50:55 +0200
Message-Id: <200310122050.h9CKotCF017207@beta.mvs.co.il>
From: "Ehud Karni" <ehud AT unix DOT mvs DOT co DOT il>
To: garbage_collector AT telia DOT com
Cc: cygwin AT cygwin DOT com
Subject: Re: setpriority() and PRIO_PROCESS under Cygwin
In-reply-to: <NGBBLLIAMFLGJEOAJCCEEEDBDFAA.garbage_collector@telia.com>
(message from Hannu E K Nevalainen on Sun, 12 Oct 2003 15:21:41 +0200)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud AT unix DOT mvs DOT co DOT il
References: <NGBBLLIAMFLGJEOAJCCEEEDBDFAA DOT garbage_collector AT telia DOT com>
MIME-Version: 1.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 12 Oct 2003 15:21:41 +0200, Hannu E K Nevalainen <garbage_collector AT telia DOT com> wrote:
>
> >+> setpriority/getpriority are not implemented in Cygwin.
>
> This means; use __CYGWIN__ or some such to create conditional (i.e.
> exclusion of) compiling of those parts of the source.

I did it once like this (code from a program I no longer use):

#ifdef __CYGWIN__
#include <windows.h>                   /* for some specific Windoz calls */
#endif /* __CYGWIN__ */


#ifdef __CYGWIN__
   {
   HANDLE WinId ;

       WinId = GetCurrentProcess ( ) ;             /* get my Windows HANDLE */
       SetPriorityClass ( WinId , REALTIME_PRIORITY_CLASS ) ;  /* set priority to REAL TIME CLASS */
   }
#endif /* __CYGWIN__ */

Ehud.


- --
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE/ib6uLFvTvpjqOY0RAtdqAJ9HKOprp8ZnzJdrADlQ3eQxYYOfTACeJ9UZ
GPrUJElEq3ByYMSLLamRal4=
=Cmx0
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019