Browse Source

Rename description in comments.

Roberto Ostinelli 9 years ago
parent
commit
a0896f96a6

+ 1 - 1
include/syn.hrl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
src/syn_app.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
src/syn_backbone.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
src/syn_consistency.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 4 - 4
src/syn_groups.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%
@@ -178,14 +178,14 @@ handle_info({'EXIT', Pid, Reason}, State) ->
             end;
             end;
 
 
         Process ->
         Process ->
-            %% get pg
+            %% get group
             Name = Process#syn_groups_table.name,
             Name = Process#syn_groups_table.name,
             %% log
             %% log
             case Reason of
             case Reason of
                 normal -> ok;
                 normal -> ok;
                 killed -> ok;
                 killed -> ok;
                 _ ->
                 _ ->
-                    error_logger:error_msg("Process of PG ~p and pid ~p exited with reason: ~p", [Name, Pid, Reason])
+                    error_logger:error_msg("Process of group ~p and pid ~p exited with reason: ~p", [Name, Pid, Reason])
             end,
             end,
             %% delete from table
             %% delete from table
             remove_process(Process)
             remove_process(Process)
@@ -203,7 +203,7 @@ handle_info(Info, State) ->
 %% ----------------------------------------------------------------------------------------------------------
 %% ----------------------------------------------------------------------------------------------------------
 -spec terminate(Reason :: any(), #state{}) -> terminated.
 -spec terminate(Reason :: any(), #state{}) -> terminated.
 terminate(Reason, _State) ->
 terminate(Reason, _State) ->
-    error_logger:info_msg("Terminating syn pg with reason: ~p", [Reason]),
+    error_logger:info_msg("Terminating syn_groups with reason: ~p", [Reason]),
     terminated.
     terminated.
 
 
 %% ----------------------------------------------------------------------------------------------------------
 %% ----------------------------------------------------------------------------------------------------------

+ 2 - 2
src/syn_registry.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%
@@ -281,7 +281,7 @@ handle_info(Info, State) ->
 %% ----------------------------------------------------------------------------------------------------------
 %% ----------------------------------------------------------------------------------------------------------
 -spec terminate(Reason :: any(), #state{}) -> terminated.
 -spec terminate(Reason :: any(), #state{}) -> terminated.
 terminate(Reason, _State) ->
 terminate(Reason, _State) ->
-    error_logger:info_msg("Terminating syn global with reason: ~p", [Reason]),
+    error_logger:info_msg("Terminating syn_registry with reason: ~p", [Reason]),
     terminated.
     terminated.
 
 
 %% ----------------------------------------------------------------------------------------------------------
 %% ----------------------------------------------------------------------------------------------------------

+ 1 - 1
src/syn_sup.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
src/syn_utils.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
test/syn_create_mnesia_SUITE.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
test/syn_groups_SUITE.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
test/syn_groups_consistency_SUITE.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
test/syn_registry_SUITE.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
test/syn_registry_consistency_SUITE.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%

+ 1 - 1
test/syn_test_suite_helper.erl

@@ -1,5 +1,5 @@
 %% ==========================================================================================================
 %% ==========================================================================================================
-%% Syn - A global process registry.
+%% Syn - A global Process Registry and Process Group manager.
 %%
 %%
 %% The MIT License (MIT)
 %% The MIT License (MIT)
 %%
 %%