Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/lamont/src/include/Diderot/strands.h
ViewVC logotype

View of /branches/lamont/src/include/Diderot/strands.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2081 - (download) (as text) (annotate)
Mon Nov 5 23:26:06 2012 UTC (6 years, 10 months ago) by lamonts
File size: 1132 byte(s)
Creating new developmented branch based on vis12
/*! \file strands.h
 *
 * \author John Reppy
 */

/*
 * COPYRIGHT (c) 2011 The Diderot Project (http://diderot-language.cs.uchicago.edu)
 * All rights reserved.
 */

#ifndef _DIDEROT_STRANDS_H_
#define _DIDEROT_STRANDS_H_

#ifndef _DIDEROT_TYPES_H_
#  include "Diderot/types.h"
#endif
#ifndef _DIDEROT_WORLD_H_
#  include "Diderot/world.h"
#endif

typedef StrandStatus_t (*update_method_t)(void *glob, void *inSt, void *outSt);
typedef void (*stabilize_method_t)(void *glob, void *inSt, void *outSt);
typedef void (*convert_method_t)(void *st, void *); 

/* hooks generated by the compiler for the runtime */
struct struct_strand {
    char                *name;          //!< name of strand
    size_t              stateSzb;       //!< size of strand state in bytes
#if defined(DIDEROT_TARGET_CL)
    size_t              shadowStrandSzb; //!< shadow strand size
#endif
    update_method_t     update;         //!< update method
    stabilize_method_t  stabilize;      //!< stabilize method
#if defined(DIDEROT_TARGET_CL)
    convert_method_t    strandCopy;     //!< method for copying 
#endif
};

#endif /* !_DIDEROT_STRANDS_H_ */

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0