Ejemplo n.º 1
0
void
faceinit ( void )
{
  face = create_face         ( "index.dat", "faceline.dat") ;
  read_muscles               ("muscle.dat", face ) ;
  read_expression_vectors    ("expression-vectors.dat", face ) ;
  data_struct                ( face ) ;	
}
Ejemplo n.º 2
0
int main()
{
    boost::scoped_ptr<thread_data> data_struct(new thread_data());
    data_struct->thread_num = 42;

    hpx::threads::thread_id_type thread_id = hpx::threads::get_self_id();
    hpx::threads::set_thread_data(thread_id,
        reinterpret_cast<std::size_t>(data_struct.get()));

    HPX_TEST_EQ(get_thread_num(), 42);

    return hpx::util::report_errors();
}