Skip to content

Commit 42cb567

Browse files
committed
more cleanup
1 parent 0d7fe5e commit 42cb567

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

driver/others/blas_server_win32.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ static HANDLE blas_threads [MAX_CPU_NUMBER];
7272
static DWORD blas_threads_id[MAX_CPU_NUMBER];
7373
static volatile int thread_target; // target num of live threads, volatile for cross-thread reads
7474

75-
static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
75+
//
76+
//
77+
//
78+
static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb) {
7679

7780
if (!(mode & BLAS_COMPLEX)) {
7881
#ifdef EXPRECISION
@@ -195,8 +198,9 @@ static void legacy_exec(void *func, int mode, blas_arg_t *args, void *sb){
195198
}
196199
}
197200

198-
// This is a main routine of threads. Each thread waits until job is
199-
// queued.
201+
//
202+
// This is a main routine of threads. Each thread waits until job is queued.
203+
//
200204
static DWORD WINAPI blas_thread_server(void *arg) {
201205

202206
/* Thread identifier */
@@ -488,7 +492,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue) {
488492

489493
// Shutdown procedure, but user don't have to call this routine. The
490494
// kernel automatically kill threads.
491-
int BLASFUNC(blas_thread_shutdown)(void){
495+
int BLASFUNC(blas_thread_shutdown)(void) {
492496

493497
int i;
494498

@@ -563,7 +567,7 @@ void goto_set_num_threads(int num_threads)
563567

564568
thread_target = num_threads;
565569

566-
//increased_threads = 1;
570+
//increased_threads = 1;
567571
if (!blas_server_avail) {
568572
// create the kickoff Event
569573
kickoff_event = CreateEvent(NULL, TRUE, FALSE, NULL);

0 commit comments

Comments
 (0)