Who can share practical examples of the use of the `GET_LOCK` function?

Example function:

```
mysql> SELECT GET_LOCK('b',10);
+------------------+
| GET_LOCK('b',10) |
+------------------+
|                1 |
+------------------+
1 row in set (0.00 sec)

mysql> SELECT IS_FREE_LOCK('b');
+-------------------+
| IS_FREE_LOCK('b') |
+-------------------+
|                 0 |
+-------------------+
1 row in set (0.00 sec)

mysql> SELECT RELEASE_LOCK('b');
+-------------------+
| RELEASE_LOCK('b') |
+-------------------+
|                 1 |
+-------------------+
1 row in set (0.00 sec)

mysql> SELECT IS_FREE_LOCK('b');
+-------------------+
| IS_FREE_LOCK('b') |
+-------------------+
|                 1 |
+-------------------+
1 row in set (0.00 sec)

```

Thank you.
['https://Stackoverflow.com/questions/26933422', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2645137/']
This should be enough:

```
self.collectionView.pagingEnabled = YES;

```

Swift version:

```
self.collectionView.pagingEnabled = true

```
If you want your cells to be moved only one at a time then you need to set the frame of cell equals to the collection view and then set the collectionView's paging enabled as below,

```
[collectionView setPagingEnabled:YES];    

```

or

```
collectionView.pagingEnabled=YES;

```