Skip to content

Commit

Permalink
align whitespaces
Browse files Browse the repository at this point in the history
Signed-off-by: Mishin, Ilya <ilya.mishin@intel.com>
  • Loading branch information
Iliamish committed Nov 12, 2021
1 parent ce04660 commit 75f1373
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions include/oneapi/tbb/flow_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -1900,13 +1900,13 @@ class limiter_node : public graph_node, public receiver< T >, public sender< T >
}
{
spin_mutex::scoped_lock lock(my_mutex);
if( delta > 0 && size_t(delta) > my_count ) {
if ( delta > 0 && size_t(delta) > my_count ) {
if( my_tries > 0 ){
my_future_decrement += (size_t(delta) - my_count);
}
my_count = 0;
}
else if( delta < 0 && size_t(-delta) > my_threshold - my_count ) {
else if ( delta < 0 && size_t(-delta) > my_threshold - my_count ) {
my_count = my_threshold;
}
else {
Expand Down Expand Up @@ -1948,11 +1948,12 @@ class limiter_node : public graph_node, public receiver< T >, public sender< T >
{
spin_mutex::scoped_lock lock(my_mutex);
++my_count;
if(my_future_decrement){
if(my_count > my_future_decrement){
if( my_future_decrement ){
if ( my_count > my_future_decrement ){
my_count -= my_future_decrement;
my_future_decrement = 0;
}else{
}
else{
my_future_decrement -= my_count;
my_count = 0;
}
Expand Down Expand Up @@ -2100,11 +2101,12 @@ class limiter_node : public graph_node, public receiver< T >, public sender< T >
else {
spin_mutex::scoped_lock lock(my_mutex);
++my_count;
if(my_future_decrement){
if(my_count > my_future_decrement){
if ( my_future_decrement ){
if ( my_count > my_future_decrement ){
my_count -= my_future_decrement;
my_future_decrement = 0;
}else{
}
else{
my_future_decrement -= my_count;
my_count = 0;
}
Expand Down

0 comments on commit 75f1373

Please sign in to comment.