Skip to content

Commit

Permalink
mac: refix of closed #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Disa Mhembere committed Aug 17, 2017
1 parent f00af42 commit fa53359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion exec/knori.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int main(int argc, char* argv[])
unsigned* p_clust_asgns = new unsigned [nrow];
size_t* p_clust_asgn_cnt = new size_t [k];

if (NULL == p_centers) We have no preallocated centers
if (NULL == p_centers) // We have no preallocated centers
p_centers = new double [k*ncol];

if (no_prune) {
Expand Down
3 changes: 1 addition & 2 deletions libman/kmeans_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ void kmeans_thread::wait() {
if (rc) perror("pthread_cond_wait");
}

rc = pthread_mutex_unlock(&mutex);
if (rc) perror("pthread_mutex_unlock");
pthread_mutex_unlock(&mutex);
}

void kmeans_thread::wake(thread_state_t state) {
Expand Down

0 comments on commit fa53359

Please # to comment.