Permalink
Browse files

Pause before exiting.

  • Loading branch information...
1 parent 13058c9 commit 24f41f1759975f8df9fe37a80802b8508ae08c61 @nbigaouette committed Nov 22, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 example/Example.cpp
View
@@ -70,6 +70,11 @@ int main(int argc, char *argv[])
platforms_list[platform].Preferred_OpenCL_Device(), // OpenCL device id
0, &err);
+ // Pause
+ std::string answer;
+ std::cout << "Press enter to exit example. The OpenCL device will be released.\n";
+ getline(std::cin, answer);
+
return EXIT_SUCCESS;
}

0 comments on commit 24f41f1

Please sign in to comment.