~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/cosTransactions/src/ETraP_Common.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-08-05 20:54:29 UTC
  • mfrom: (6.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090805205429-pm4pnwew8axraosl
Tags: 1:13.b.1-dfsg-5
* Fixed parentheses in Emacs mode (closes: #536891).
* Removed unnecessary conflicts with erlang-manpages package.
* Added workaround for #475459: disabled threads on sparc architecture.
  This breaks wxErlang, so it's only a temporary solution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
%% Timeouts
35
35
-define(tr_comm_failure_wait, 
36
36
        case catch application:get_env(cosTransactions, comFailWait) of
37
 
            {ok, _Time} when integer(_Time) ->
 
37
            {ok, _Time} when is_integer(_Time) ->
38
38
                _Time;
39
39
            _ ->
40
40
                5000
42
42
 
43
43
-define(tr_max_retries, 
44
44
        case catch application:get_env(cosTransactions, maxRetries) of
45
 
            {ok, _Max} when integer(_Max) ->
 
45
            {ok, _Max} when is_integer(_Max) ->
46
46
                _Max;
47
47
            _ ->
48
48
                40
147
147
 
148
148
-define(tr_start_child(SPEC),
149
149
        case supervisor:start_child(?SUPERVISOR_NAME, SPEC) of
150
 
            {ok, Pid, Obj} when pid(Pid) ->
 
150
            {ok, Pid, Obj} when is_pid(Pid) ->
151
151
                Obj;
152
152
            _Other->
153
153
                corba:raise(?tr_badparam)