Skip to content

Question with safety of the function call_linksafe #5

Description

@suexcxine
  def call_linksafe(name, max, func) do
    if acquire(name, max) do
      safe_key = {name, self()}
      inserted = ETS.insert_new(@call_safe_table, [safe_key])

What if the process killed before ETS.insert_new(@call_safe_table, [safe_key]) ?
Seems like we still have problem, although time window for this is rather small.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions