diff options
author | marha <marha@users.sourceforge.net> | 2010-10-22 14:00:01 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-10-22 14:00:01 +0000 |
commit | d74d9f4e60e48260ff1fad3ff00aaf000f111a66 (patch) | |
tree | fcf6ceee3ec04dc8521bbf12453d95cbe187dc40 /tools/mhmake/src/commandqueue.h | |
parent | 5a05343a8071f769d092d5bb6bdea9adf65eda9c (diff) | |
download | vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.tar.gz vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.tar.bz2 vcxsrv-d74d9f4e60e48260ff1fad3ff00aaf000f111a66.zip |
Increased gnu make compatibility
Optimised
Diffstat (limited to 'tools/mhmake/src/commandqueue.h')
-rw-r--r-- | tools/mhmake/src/commandqueue.h | 12 |
1 files changed, 6 insertions, 6 deletions
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<fileinfo> pTarget;
+ fileinfo* pTarget;
vector<string>::const_iterator CurrentCommandIt;
string Command;
md5_context md5ctx;
bool IgnoreError;
};
private:
- queue< refptr<fileinfo> > m_Queue;
+ queue<fileinfo*> m_Queue;
unsigned m_MaxNrCommandsInParallel;
mh_pid_t *m_pActiveProcesses;
refptr<activeentry> *m_pActiveEntries;
@@ -56,7 +56,7 @@ private: {
RemoveActiveEntry(GetActiveEntryId(pActiveEntry));
}
- bool StartExecuteCommands(const refptr<fileinfo> &pTarget);
+ bool StartExecuteCommands(fileinfo *pTarget);
bool StartExecuteNextCommand(refptr<activeentry> pActiveEntry, mh_pid_t *pActiveProcess);
void TargetBuildFinished(refptr<activeentry> pActiveEntry);
@@ -64,8 +64,8 @@ public: commandqueue();
~commandqueue();
- bool QueueTarget(const refptr<fileinfo> &pTarget); // Returns true if target has been queued, false when commands are executed upon return
- mh_time_t WaitForTarget(const refptr<fileinfo> &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);
};
|