Lines Matching refs:thread
1348 * threads attempt to load/destroy the key, exactly one thread succeeds. */
1356 * that once imported by some thread, all threads can use the key. */
1363 /* Import the key, exactly one thread must succeed. */
1371 /* More than one thread has succeeded, report a failure. */
1379 /* If all of the key slots are reserved when a thread
1384 * free key slots. Each thread reserves an empty key slot,
1386 * It is at that point where the thread sees that the key
1391 * thread from executing, note that this is not an error. */
1395 /* The key has been loaded by a different thread. */
1405 * 1: This thread successfuly imports a persistent key skc->key.
1408 * 3: A final thread attempts to reserve an empty key slot, kicking
1410 * 4: This thread calls psa_get_key_attributes(skc->key,...):
1413 * This thread returns PSA_ERROR_INSUFFICIENT_MEMORY.
1444 /* Ensure that we are the only thread to succeed. */
1981 * exactly one thread succeeds and the rest fail with valid errors.
1996 * occurs, and exactly one thread succeeds when destroying the key. */
2007 /* Ensure that one thread succeeded in destroying the key. */