Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: garbage_collector AT telia DOT com Cc: cygwin AT cygwin DOT com Subject: Re: setpriority() and PRIO_PROCESS under Cygwin In-reply-to: (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: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 12 Oct 2003 15:21:41 +0200, Hannu E K Nevalainen 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 /* 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 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/