コード例 #1
0
ファイル: ipcp-2.c プロジェクト: gmarkall/gcc
int
top2 (int q)
{
  do_stuff (200);
  do_other_stuff ();
  return bah (16, q);
}
コード例 #2
0
ファイル: two_unisexRR.c プロジェクト: albertoacuna/CSE430HW3
void *thread_mmain(void * arg)
{
   int tid =  * ((int *) arg);
   threadIDs[tid] = pthread_self();

   while(1==1)
   {
       do_other_stuff();
       man_enter();
   }
}
コード例 #3
0
void *thread_fmain(void * arg)
{
   int tid =  *((int *) arg);
   threadIDs[tid] = pthread_self();

   while(1==1)
   {
       do_other_stuff();
       woman_enter();
       use_rr();
       woman_leave();
   }
}
コード例 #4
0
ファイル: listing_3.7.cpp プロジェクト: AnnYN/CCiA
void other_stuff()
{
    high_level_func();
    do_other_stuff();
}
コード例 #5
0
ファイル: listing_4.6.cpp プロジェクト: jasonblog/note
int main()
{
    std::future<int> the_answer = std::async(find_the_answer_to_ltuae);
    do_other_stuff();
    std::cout << "The answer is " << the_answer.get() << std::endl;
}
コード例 #6
0
ファイル: ipcp-2.c プロジェクト: gmarkall/gcc
int
top1 (int q)
{
  do_other_stuff ();
  return bah (0, q);
}