From d74d9f4e60e48260ff1fad3ff00aaf000f111a66 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 22 Oct 2010 14:00:01 +0000 Subject: Increased gnu make compatibility Optimised --- tools/mhmake/src/commandqueue.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/mhmake/src/commandqueue.h') diff --git a/tools/mhmake/src/commandqueue.h b/tools/mhmake/src/commandqueue.h index d29057443..8b327be8c 100644 --- a/tools/mhmake/src/commandqueue.h +++ b/tools/mhmake/src/commandqueue.h @@ -1,6 +1,6 @@ /* This file is part of mhmake. * - * Copyright (C) 2001-2009 Marc Haesen + * Copyright (C) 2001-2010 marha@sourceforge.net * * Mhmake is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -33,14 +33,14 @@ class commandqueue { struct activeentry : public refbase { - refptr pTarget; + fileinfo* pTarget; vector::const_iterator CurrentCommandIt; string Command; md5_context md5ctx; bool IgnoreError; }; private: - queue< refptr > m_Queue; + queue m_Queue; unsigned m_MaxNrCommandsInParallel; mh_pid_t *m_pActiveProcesses; refptr *m_pActiveEntries; @@ -56,7 +56,7 @@ private: { RemoveActiveEntry(GetActiveEntryId(pActiveEntry)); } - bool StartExecuteCommands(const refptr &pTarget); + bool StartExecuteCommands(fileinfo *pTarget); bool StartExecuteNextCommand(refptr pActiveEntry, mh_pid_t *pActiveProcess); void TargetBuildFinished(refptr pActiveEntry); @@ -64,8 +64,8 @@ public: commandqueue(); ~commandqueue(); - bool QueueTarget(const refptr &pTarget); // Returns true if target has been queued, false when commands are executed upon return - mh_time_t WaitForTarget(const refptr &pTarget); + bool QueueTarget(fileinfo *pTarget); // Returns true if target has been queued, false when commands are executed upon return + mh_time_t WaitForTarget(fileinfo *pTarget); void SetNrParallelBuilds(unsigned NrParallelBuilds); }; -- cgit v1.2.3