workcache: Switch field privacy as necessary
This commit is contained in:
parent
52974bd695
commit
fab0f47fdf
1 changed files with 11 additions and 11 deletions
|
@ -140,9 +140,9 @@ impl WorkMap {
|
|||
}
|
||||
|
||||
pub struct Database {
|
||||
priv db_filename: Path,
|
||||
priv db_cache: TreeMap<~str, ~str>,
|
||||
db_dirty: bool
|
||||
db_filename: Path,
|
||||
db_cache: TreeMap<~str, ~str>,
|
||||
pub db_dirty: bool,
|
||||
}
|
||||
|
||||
impl Database {
|
||||
|
@ -225,26 +225,26 @@ pub type FreshnessMap = TreeMap<~str,extern fn(&str,&str)->bool>;
|
|||
|
||||
#[deriving(Clone)]
|
||||
pub struct Context {
|
||||
db: Arc<RWLock<Database>>,
|
||||
priv cfg: Arc<json::Object>,
|
||||
pub db: Arc<RWLock<Database>>,
|
||||
cfg: Arc<json::Object>,
|
||||
/// Map from kinds (source, exe, url, etc.) to a freshness function.
|
||||
/// The freshness function takes a name (e.g. file path) and value
|
||||
/// (e.g. hash of file contents) and determines whether it's up-to-date.
|
||||
/// For example, in the file case, this would read the file off disk,
|
||||
/// hash it, and return the result of comparing the given hash and the
|
||||
/// read hash for equality.
|
||||
priv freshness: Arc<FreshnessMap>
|
||||
freshness: Arc<FreshnessMap>
|
||||
}
|
||||
|
||||
pub struct Prep<'a> {
|
||||
priv ctxt: &'a Context,
|
||||
priv fn_name: &'a str,
|
||||
priv declared_inputs: WorkMap,
|
||||
ctxt: &'a Context,
|
||||
fn_name: &'a str,
|
||||
declared_inputs: WorkMap,
|
||||
}
|
||||
|
||||
pub struct Exec {
|
||||
priv discovered_inputs: WorkMap,
|
||||
priv discovered_outputs: WorkMap
|
||||
discovered_inputs: WorkMap,
|
||||
discovered_outputs: WorkMap
|
||||
}
|
||||
|
||||
enum Work<'a, T> {
|
||||
|
|
Loading…
Add table
Reference in a new issue