Revision: 54971
http://brlcad.svn.sourceforge.net/brlcad/?rev=54971&view=rev
Author: brlcad
Date: 2013-03-29 16:23:22 +0000 (Fri, 29 Mar 2013)
Log Message:
-----------
fix style
Modified Paths:
--------------
brlcad/trunk/src/libbu/affinity.c
Modified: brlcad/trunk/src/libbu/affinity.c
===================================================================
--- brlcad/trunk/src/libbu/affinity.c 2013-03-29 16:17:54 UTC (rev 54970)
+++ brlcad/trunk/src/libbu/affinity.c 2013-03-29 16:23:22 UTC (rev 54971)
@@ -70,7 +70,7 @@
CPU_ZERO(&set_of_cpus);
- for(j = 0; j < cpulim; j++) {
+ for (j = 0; j < cpulim; j++) {
/* Set affinity mask to include CPUs 0 to max available CPU */
CPU_SET(j, &set_of_cpus);
}
@@ -78,14 +78,14 @@
/* Check current affinity mask assigned to thread */
status = pthread_getaffinity_np(curr_thread, sizeof(set_of_cpus),
&set_of_cpus);
- if(status != 0) {
+ if (status != 0) {
/* Error in getting affinity mask */
return -1;
}
- for(j = 0; j < CPU_SETSIZE; j++) {
+ for (j = 0; j < CPU_SETSIZE; j++) {
/* Check which set has been returned by pthread_get_affinity */
- if(CPU_ISSET(j, &set_of_cpus)) {
+ if (CPU_ISSET(j, &set_of_cpus)) {
/* found affinity mask */
cpu = j;
break;
@@ -99,7 +99,7 @@
/* set affinity mask of current thread */
status = pthread_setaffinity_np(curr_thread, sizeof(set_of_cpus),
&set_of_cpus);
- if(status != 0) {
+ if (status != 0) {
/* Error in setting affinity mask */
return -1;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits